Skip to content

Conversation

@angrytoenail
Copy link

Resolves #5979

viewportfix

@WithoutPants WithoutPants added this to the Version 0.29.0 milestone Jul 1, 2025
Copy link
Collaborator

@WithoutPants WithoutPants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay in testing this.

Comment on lines +64 to +65
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks styling on other viewports, since the safe-area-inset-x values are 0, when the bootstrap container-fluid class uses 15px as the left and right padding values. It also appeared to provide too much padding on my Pixel device when in landscape mode and added a horizontal scrollbar. If I removed these lines (leaving the viewport-fit change), then the page rendered correctly.

I tried the following which worked on my desktop PC, and it eliminated the scrolling on the Pixel, but still rendered with too much left padding in landscape mode:

padding-left: calc(max(env(safe-area-inset-left), 15px));
padding-right: calc(max(env(safe-area-inset-right), 15px));

@WithoutPants WithoutPants removed this from the Version 0.29.0 milestone Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug Report] Page style/layout on mobile

2 participants