-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add and enforce minimum width #5599
Conversation
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.
Please make sure this applies when snapToGridOnResize
is false.
Please share a sample (screenshot?) of how big/small this minimum size is.
Maybe we should only enforce a minimum width.
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.
I concur with:
- Please make sure this applies when
snapToGridOnResize
is false. - Maybe we should only enforce a minimum width.
- Does this actually resolve Interesting Resizing behaviour #4990?
???????? definitely exists sz.scale(til::math::rounding, 1.5f) |
Yeah. Michael just gave me a walkthrough on it and being able to cast the output. I've been out of the loop for a while haha. |
Just verified it, works fine.
#5418 needs the width and height. Width ensures tabs can always be read. Height ensures about menu fits (see attached features above.
I can't actually get a repro on this one. But I can't get it on 0.11 either. @DHowett-MSFT or @zadjii-msft, if either of you can actually get a repro on this, would you mind checking it? Mainly just tagged it because there's a comment that enforcing a minimum size might help. |
This is too tall. people will hate it. |
Some people legitimately want a one-line-tall terminal. Let's not optimize around an ephemeral dialog. |
I hate it too :/ But how else can we get the About menu to fit? |
Can we do this for now, and add a minimum size setting in 2.0?
|
I'm a hard NAK on the height. Width is fine. Min height = tab strip height. Let people make their about dialogs disappear. |
Updated the PR to only enforce the minimum width. |
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.
Nice, thanks for checking those things!
Thanks |
Hello @carlos-zamora! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
🎉 Handy links: |
Summary of the Pull Request
Enforces a minimum width of 460 wide. This allows tabs to always be seen (albeit partially).
NOTE: A minimum height was originally added to allow the About menu to be seen. This minimum height was removed from this PR because we don't foresee a circumstance where your Terminal is in that state, and you can't just resize it to make the content fit properly.
References
#4990 may be fixed/affected by this?
PR Checklist
Validation Steps Performed
Here's some images of what the terminal looks like when it's at its minimum size:
100% scaling
100% scaling: one tab
100% scaling: two tabs
100% scaling: 3 tabs (scrolling enabled)
200% scaling
200% scaling: one tab
200% scaling: two tabs
200% scaling: 3 tabs (scrolling enabled)