-
-
Notifications
You must be signed in to change notification settings - Fork 387
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 popup for bigger fonts/longer translations #1445
base: master
Are you sure you want to change the base?
Conversation
6c0c3ae
to
151a137
Compare
Force-pushed a new approach, will update the description. Saving the first try below for posterity: This (6c0c3ae) uses Flexbox (based on a couple of SO threads: one, two) to set up a few fill-all-remaining-space-without-shoving-the-rest-of-the-content-off-screen cells.
|
@lemnis It's also possible I broke something related to your recently-merged Android compatibility fixes. We should check ... Unfortunately I am not yet set up for Android development. |
14a1a5e
to
d77686c
Compare
It seems like the following diff gets us to what we want in terms of popup sizing (more domains shown at 100% zoom, fewer domains at larger zooms), but it introduces bizarre popup resizing behavior, seemingly triggered by tooltips and/or mousing over slider handles: diff --git a/src/skin/popup-layout.css b/src/skin/popup-layout.css
index 803d44e..df6291b 100644
--- a/src/skin/popup-layout.css
+++ b/src/skin/popup-layout.css
@@ -2,6 +2,7 @@ body {
overflow: hidden;
margin: 8px 8px 0;
padding: 0 7px;
+ height: 100%;
}
.table {
@@ -17,7 +18,7 @@ body {
}
.container {
- height: 38em;
+ height: 100%;
}
.header { |
d77686c
to
b7083bc
Compare
I have taken a quick look a noticed 2 things:
diff --git a/src/skin/popup-layout.css b/src/skin/popup-layout.css
index 803d44e..6820c0e 100644
--- a/src/skin/popup-layout.css
+++ b/src/skin/popup-layout.css
@@ -1,7 +1,6 @@
body {
- overflow: hidden;
- margin: 8px 8px 0;
- padding: 0 7px;
+ padding: 8px 15px;
+ box-sizing: border-box;
}
.table {
diff --git a/src/skin/popup.css b/src/skin/popup.css
index ab8514e..1886b58 100644
--- a/src/skin/popup.css
+++ b/src/skin/popup.css
@@ -25,8 +25,6 @@ body {
background: #fefefe;
color: #333;
font-family: helvetica, arial, sans-serif;
- padding: 8px 15px;
- box-sizing: border-box;
}
@media screen and (min--moz-device-pixel-ratio:0) {
body{ I believe there is more code within Your proposed changes in (#1445 (comment)) didn't work on FF desktop The only solution for Firefox that I can see is using your proposed changed with some extra behavior. First disable |
@ghostwords do you still want to me to review this. Would you mind rebasing it on master first? |
@@ -0,0 +1,103 @@ | |||
body | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats up with mix and match open brackets?
color: #b0b0b0; | ||
} | ||
|
||
.importInput{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Space before open brackets...
/me thinks this CSS needs some linting and fixing for consistency looking at master its all over the place.
|
||
.body-content-outer-wrapper { | ||
height: 100%; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space between properties?
Fixes #1113, fixes #1077.
The goal is to at least support 110% and 125% page zoom settings in Chrome (and equivalent (up to 1.25?)
layout.css.devPixelsPerPx
about:config
values in Firefox)