Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(client): increase padding to account for safe area #2252

Merged

Conversation

yakovmanshin
Copy link
Contributor

@yakovmanshin yakovmanshin commented Oct 18, 2024

  • Updated zero state’s footer’s bottom padding to include safe area
Before & After (iOS 18)

@yakovmanshin yakovmanshin requested a review from a team as a code owner October 18, 2024 17:23
@@ -87,7 +87,7 @@ export class ServerList extends LitElement {
}
footer {
border-top: 1px solid rgba(0, 0, 0, 0.08);
padding: 24px 0 16px;
padding: 24px 0 max(16px, env(safe-area-inset-bottom));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

max() was added in Chrome 79. Not sure if it covers every supported OS version, but since the related min() function is already used in the project, I figured it’s fine to use max() here.

Copy link
Contributor

@daniellacosse daniellacosse left a comment

Choose a reason for hiding this comment

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

Thanks!!

@yakovmanshin yakovmanshin changed the title Safe Area Padding in Zero State’s Footer fix(client): Safe Area Padding in Zero State’s Footer Oct 19, 2024
@yakovmanshin
Copy link
Contributor Author

@daniellacosse I renamed the PR so the name check doesn’t fail. Could you please approve the workflow? Thank you!

* Updated zero state’s footer’s bottom padding to include safe area
@yakovmanshin yakovmanshin changed the title fix(client): Safe Area Padding in Zero State’s Footer fix(client): increase padding to account for safe area Oct 25, 2024
@daniellacosse daniellacosse merged commit 615a365 into Jigsaw-Code:master Oct 25, 2024
18 checks passed
@yakovmanshin yakovmanshin deleted the zero-state-footer-padding branch October 25, 2024 15:32
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.

2 participants