Support Article
Portal header does not display in the mobile View
SA-80666
Summary
Portal header does not display in the mobile View.
Error Messages
Not Applicable
Steps to Reproduce
- Configure the dashboard using the Header-Footer-Left screenlayout.
- In the header section, include another section using the pyIsMobile Visibility When rule. This section contains two images and a label.
- Create a report definition containing a drilldown report.
- Launch the portal and navigate to the Report Browser tab.
- Open the drilldown report.
- Click the 'Main report name' link from the drilldown report. OnClick of the main report name link, the header is not displayed.
Root Cause
The header did not display due to an overridden CSS in the 'CustomUIStyles.css', which specified the header height to be 60px and footer height as 'auto'.
Hence, when the default CSS is fetched, the application header and footer do not display correctly.
Default CSS:
.flex.screen-layout-header_footer_left > .screen-layout-region-main-middle {
flex: 1 auto;
position: static;
height: calc(100% - 80.0px);
width: calc(100% - 273.0px)
}
Resolution
Perform the following local-change:
Add the below CSS in the CustomUIStyles.css.
@media only screen and (max-width: 800px) {
.screen-layout-header_footer_left > .screen-layout-region-main-middle{
height: calc(100% - 134px) !important;
}
}
Published August 15, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.