Skip to content

Update HTML/CSS to accommodate mobile devices with notches#5980

Draft
angrytoenail wants to merge 6 commits intostashapp:developfrom
angrytoenail:feat/viewport-fix
Draft

Update HTML/CSS to accommodate mobile devices with notches#5980
angrytoenail wants to merge 6 commits intostashapp:developfrom
angrytoenail:feat/viewport-fix

Conversation

@angrytoenail
Copy link
Copy Markdown

Resolves #5979

viewportfix

@WithoutPants WithoutPants added this to the Version 0.29.0 milestone Jul 1, 2025
Copy link
Copy Markdown
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 thread ui/v2.5/src/index.scss
Comment on lines +64 to +65
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
Copy link
Copy Markdown
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
@Gykes
Copy link
Copy Markdown
Collaborator

Gykes commented Mar 17, 2026

Closing as stale.

@Gykes Gykes closed this Mar 17, 2026
@angrytoenail
Copy link
Copy Markdown
Author

Opps, I hadn't enabled notifications on this alt account and never saw your comments @WithoutPants !

I'm happy to look into the padding issues you mentioned, I'm sure there'll be a way of achieving the right balance of spacing that works across all devices and screen sizes (admittedly I assumed non-iPhone devices would be unaffected).

Would you mind re-opening this? @Gykes

@Gykes Gykes reopened this Apr 3, 2026
@angrytoenail angrytoenail marked this pull request as draft May 6, 2026 18:22
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

4 participants