Skip to content

Conversation

@thecoolwinter
Copy link
Collaborator

@thecoolwinter thecoolwinter commented Mar 23, 2022

Description

Fixes #177 by replacing the .fixedSize() modifier from the largest status bar item with .fixedSize(horizontal: false, vertical: true). The .fixedSize() was causing the sidebar to stay the same width even when the window needed to shrink to a smaller width.

PR #193 fixed this by removing the long error message that was causing the problem, but this PR removes the underlying layout problem. This will also fix the issue if someone in the future has a very long branch name.

Also, as you can see in the screen recording, it fixes this bug when other long errors are present.

Releated Issue

PR #193 and issue #177

Checklist (for drafts):

  • I read and understood the contributing guide as well as the code of conduct
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • Review requested

Screenshots (if appropriate):

Status bar item resizing with width change:

Screen.Recording.2022-03-22.at.7.35.31.PM.mov

@lukepistrol lukepistrol merged commit 4eae4c3 into CodeEditApp:main Mar 23, 2022
@thecoolwinter thecoolwinter deleted the sidebar-bug branch June 5, 2022 00:51
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.

🐞 Sidebar moved to far left

2 participants