Service Portal container disappears when shrinking screen size

yundlu316
Kilo Guru

I have a container in a Service Portal page that holds the Search widget only.   I also uploaded an image and set it as the background for that same container.   Everything looks fine on a laptop screen, except for a weird grey strip at the bottom of the screen...as if the content isn't tall enough:

find_real_file.png

On a related issue, when I shrink the screen size to see how it looks, the container with the background image and search widget completely disappears:

find_real_file.png

Does anyone know why this is happening?   How can I fix it?   thanks!

1 ACCEPTED SOLUTION

Hi David,



I think the culprit is the Parent class = hidden-xs on that container. What that does in bootstrap is when the widget get's below ~768px the element is hidden. It's a way to keep the page responsive, so I would be careful removing it, but you should be able to remove that Parent class and have the container no longer disappear.



Screen Shot 2017-01-26 at 8.37.04 AM.png


View solution in original post

8 REPLIES 8

It looks like there is nothing inside it when you make the screen smaller because the search box that shows up with the smaller screen is actually a different search element. I think what you'd want to do is find the class that's causing the larger search box to be hidden and remove it, then get rid of the search box that shows up when the screen gets smaller.



Screen Shot 2017-01-26 at 8.45.02 AM.png


hey Brad, you were right.   although i didn't have hidden-xs in my parent class, when i opened up the code you see it in the first line of the html:



<div id="homepage-search" class="hidden-xs wrapper-xl">


  <div class="wrapper-xl">


  <h1 class="text-center text-4x m-b-lg sp-tagline-color" ng-bind="options.title"></h1>


  <h4 ng-if="options.short_description" class="text-center m-b-lg sp-tagline-color" ng-bind="options.short_description"></h4>


  <sp-widget widget="data.typeAheadSearch" />


  </div>


</div>



once i deleted that, it works!   thanks!


Hi Brad,



When we use "hidden-xs" css class it hides the element from both mobile and tablet view. I wanted to know how to hide an image for mobile view and not for tablet view. Please help me on this.



Regards,


Gope


lokiahgr
Tera Contributor

I removed the visible-xs from parent class and the container in the page has gone missing. how do i get this back?