Skip to content

Commit

Permalink
Fix: URL Bar - Position fix for touch & tablet mode #881
Browse files Browse the repository at this point in the history
  • Loading branch information
black7375 committed Apr 28, 2024
1 parent 9201a93 commit 15a6f4f
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
12 changes: 8 additions & 4 deletions css/leptonChrome.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions css/leptonChromeESR.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/padding/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
}
@include Option("userChrome.padding.urlView_expanding", "userChrome.urlView.as_commandbar") {
#urlbar[breakout][breakout-extend] {
top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2) !important;
top: calc((var(--urlbar-toolbar-height, var(--urlbar-container-height)) - var(--urlbar-height)) / 2) !important;
left: 0 !important;
width: 100% !important;
}
Expand Down
4 changes: 3 additions & 1 deletion src/padding/_urlbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
}
}
:root[uidensity="touch"] & {
top: calc((var(--urlbar-toolbar-height) - var(--urlbar-height)) / 2 + 1px) !important;
// Fallback #881
top: calc((var(--urlbar-toolbar-height, var(--urlbar-container-height))
- var(--urlbar-height)) / 2 + 1px) !important;
}
}

Expand Down

0 comments on commit 15a6f4f

Please sign in to comment.