Adjust Service Portal height dynamically

Christine24
Giga Expert

I am working on our Service Portal and our UX team realized when you zoom out on the homepage, the gray container does not move dynamically and it shows white at the bottom. Does anyone know how to make the height fluid so that the container stays and the white space goes away?


find_real_file.png

1 ACCEPTED SOLUTION

Shane Craddock
Kilo Expert

Hi Christine,

I used this in my portal CSS to fill the height with the last section on the page.

section {
  display: flex;
  flex-direction: column;
  main.body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    >:last-child {
      flex-grow: 1;
    }
  }
}

 

If this answer helped you please mark it as Helpful, if it solved your issue please mark as Correct, thank you!

View solution in original post

8 REPLIES 8

Shane Craddock
Kilo Expert

Hi Christine,

I used this in my portal CSS to fill the height with the last section on the page.

section {
  display: flex;
  flex-direction: column;
  main.body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    >:last-child {
      flex-grow: 1;
    }
  }
}

 

If this answer helped you please mark it as Helpful, if it solved your issue please mark as Correct, thank you!

That worked!! Thank you! 🙂

Hi, can you please explain where exactly you put the code? I have the same issue. 

@Edxavier Robert ,

 

They added it to the portal records, CSS variables field.

 

ahefaz1_0-1704989685480.png

 

 

Please accept the solution or mark helpful if this helped.

 

Thanks,