Skip to content

feat: always show close button on the active panel in a stack#1773

Merged
dsmmcken merged 2 commits intomainfrom
dmckenzie_close_changes
Feb 7, 2024
Merged

feat: always show close button on the active panel in a stack#1773
dsmmcken merged 2 commits intomainfrom
dmckenzie_close_changes

Conversation

@dsmmcken
Copy link
Copy Markdown
Contributor

@dsmmcken dsmmcken commented Feb 5, 2024

Based on user feedback, we've made close buttons a little more prominent. Mainly the active tab in a stack now always shows it's close button. This mirrors behaviour in other IDEs like vs code. The intent is this will make it slightly less likely to accidently close tabs.

Summary:

close_button_change

Changes:

  • show close button on active panels
  • removed transition so close button appears instantly on hover of non-active panel
  • added hover background to close button to make it stand-out slightly more
  • adjusted overall tab size and spacing to be a little tighter
  • reduced minimum tab size slightly to 10ch to fit more tabs in tab bar

- shows close button on active panels
- removed transition so close button appears instantly on hover of non-active panel
- added hover background to close button to make it stand-out a slightly more
- adjusted overall tab size and spacing to be a little tighter
- reduce minium tab size to 10ch
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2cd46ce) 46.10% compared to head (fe1de0a) 46.10%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1773   +/-   ##
=======================================
  Coverage   46.10%   46.10%           
=======================================
  Files         627      627           
  Lines       37622    37622           
  Branches     9470     9470           
=======================================
  Hits        17345    17345           
  Misses      20222    20222           
  Partials       55       55           
Flag Coverage Δ
unit 46.10% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dsmmcken dsmmcken changed the title feat: always show close button on active panels feat: always show close button on the active panel in a stack Feb 5, 2024
@dsmmcken dsmmcken requested a review from mattrunyon February 5, 2024 22:34
Copy link
Copy Markdown
Collaborator

@mattrunyon mattrunyon left a comment

Choose a reason for hiding this comment

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

Did you add a bit more shadow to the tabs to give a little more depth to them?

@dsmmcken
Copy link
Copy Markdown
Contributor Author

dsmmcken commented Feb 6, 2024

Did you add a bit more shadow to the tabs to give a little more depth to them?

No. Are you basing that on the diff of tests/golden-layout.spec.ts-snapshots/tests-golden-layout-operations-golden-layout-can-drag-tab-to-left-edge-2 images?

Shadows were changed in a previous PR, but I guess playwright decided the shadow change alone was within tolerance to not regenerate. This PR actually changes the tab width, which is enough of a diff.

@mattrunyon
Copy link
Copy Markdown
Collaborator

Yep just looking at the diffs I noticed a more prominent shadow

@dsmmcken dsmmcken merged commit 33c6a8d into main Feb 7, 2024
@dsmmcken dsmmcken deleted the dmckenzie_close_changes branch February 7, 2024 16:56
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 7, 2024
@dsmmcken dsmmcken self-assigned this Feb 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants