Skip to content

✨ Snap Sidebar To Width #856

Closed
Closed

Description

@austincondiff

Describe the solution you'd like

Snap the sidebar at a specific width. Xcode snaps to 270 we should follow suit.

When below this snapped width, the sidebar dock icons condense.

In Finder, when the sidebar snaps to a width, the user gets subtle haptic feedback to reinforce what happened.

Video Demo

Screen.Recording.2022-11-14.at.8.15.46.PM.mov

Activity

  1. yapryntsev commented on Dec 30, 2022

    @yapryntsev
    Contributor

    I'd like to take this issue.

  2. lukepistrol commented on Dec 30, 2022

    @lukepistrol
    Member

    @yapryntsev thx! Assigned it to you!

  3. yapryntsev commented on Dec 30, 2022

    @yapryntsev
    Contributor

    I need a couple of clarifications:

    1. Current implementation sets minimumThickness at 260. If we snapped at 270, the way between 270 and 260 feels slightly laggy. Should we decrease the lower boundary a bit?
    2. Currently sidebar dock icons are perfectly fit because minimumThickness is 260. Is space between icons should increase when the width is more than 270? If so, by what value does it increase?
  4. austincondiff commented on Dec 30, 2022

    @austincondiff
    CollaboratorAuthor
    1. Xcode’s minimum width seems to be 242. Let’s go with that.
    2. Xcode reduces icon spacing to 9px when width is less than the snap (< 270).
      image
      When width is 270 and above the spacing is normal at 15px.
      image

    It also seems like our icons are stretch (not proportioned correctly) we may need to set the aspect ratio to fit.
    Screenshot 2022-12-30 at 10 51 49 AM

  5. added a commit that references this issue on Jan 3, 2023
  6. bombardier200 commented on Jan 5, 2023

    @bombardier200
    Contributor

    @austincondiff close this issue as we merged the PR for it!

  7. lukepistrol commented on Jan 11, 2023

    @lukepistrol
    Member

    @yapryntsev please have a look at the following comment regarding failing tests introduced in PR #882:

  8. added
    bugSomething isn't working
    and removed on Jan 11, 2023
  9. moved this from 🆕 New to 🏁 Complete in CodeEdit Projecton Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or requesttests

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions