-
Notifications
You must be signed in to change notification settings - Fork 27
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
Modal dialog improvement #1187
Modal dialog improvement #1187
Conversation
This must be related to #1175 and https://github.com/googlefonts/fontra/pull/1180/files, and I had an uneasy feeling about the fix. I have an uneasy feeling about the fix in this PR, too: I don't think Indeed, I just tested: try "Add Component", this should show a big list, and it should be as big as possible (within roughly the 80vh). |
Hmm, we shouldn't have that scrollbar at the edge. The dialog should fit on the page (with some margin above and below), and any scrolling should be handled by its contents. Your original problem is that we get too many scrollbars when the window isn't tall enough, right? |
Can you compare how the situation was before #1146? I feel that PR had larger consequences than intended. |
So what I'm asking is, did that issue exist before #1146 was merged? |
this is after #1145 merged |
Ok, so we need to back up more. Was it ok before #1145? Was it ever ok? I need to know whether this is a regression or something that was always broken. |
I tried after #929 merged and it's not different |
And before that one? |
Yes, even before the menu bar was merged. I think it's not regression. |
Instead of looking at a long list, I prefer to use the search bar and get a shorter list. |
Thanks! That might be related to the minHeight of the axis list:
|
Changing that to "3em" seems to improve it. |
Hm, I'm not happy with the use of vh in the list minHeight. This should be an absolute value, and should not depend on the view height. You can tweak the exact value of 3em, but please use em. Secondly, I am not happy with the taller dialog for short messages. If this is to make sure the dialog doesn't break for a very small window height: I'm actually ok with some breakage under such tight conditions. The app is not really meant for such small windows. |
Ok, I just follow your suggestion |
This reverts commit 5a1d79f.
Thank you once again for your contributions! It's much appreciated. |
This pr will fix this issue,
and fix #1176