Skip to content

Dynamically set max width of resizable component - #10706

Closed
marzepani wants to merge 2 commits into
desktop:developmentfrom
marzepani:development
Closed

marzepani wants to merge 2 commits into
desktop:developmentfrom
marzepani:development

Conversation

@marzepani

Copy link
Copy Markdown

Related to #2745 (and #1588)

Description

The max-width limit of the sidebar and file list is too small on wide screens. This PR dynamically sets the max-width of every resizable component to one-third of the main window. It does not listen to the window resize event, but it recalculates on every drag start to keep it simple.

Release notes

Notes:
I don't think the width of the sidebar and file list should be automatically resized when the main window is resized. Auto-resizing can be quite annoying. Al least to me, it is.

@paul-szczepanek-arm paul-szczepanek-arm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is this PR stuck? Looks great!

@Shahryarmohammadie

Copy link
Copy Markdown

good

@marzepani

Copy link
Copy Markdown
Author

It has been one year now that I opened this PR. Is anyone interested in reviewing, accepting, rejecting, or commenting?

@sergiou87

Copy link
Copy Markdown
Member

Sorry about the radio silence @marzepani 😓

We discussed about this PR a few weeks ago, and we liked the idea but were afraid it could break anything without us noticing, so we wanted to test it thoroughly but so far we haven't found the time yet 😭

@danny007in

Copy link
Copy Markdown

better use percentage for width.

@adamgit

adamgit commented Dec 1, 2021

Copy link
Copy Markdown

This appears to be a trivial change that takes an already broken part of the UI and makes it less broken. How is there a risk here that 'something else' might get broken? It's barely changing 8 lines of code.

Would it help if I submitted a PR that simply removes the offending code, the max-size limit that should never have been there in the first place, as per glennreid's comment - now 3 years old - #2745 (comment) ?

@niik

niik commented Dec 3, 2021

Copy link
Copy Markdown
Member

Thanks so much for wanting to contribute here @marzepani, we really appreciate it! I'm going to close this in favor of #13439 which hopefully will let us relax the constraints of the resizable components without running into the risks that @sergiou87 alluded to.

@niik niik closed this Dec 3, 2021
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.

9 participants