-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
Sidebar layout fixes #1875
base: main
Are you sure you want to change the base?
Sidebar layout fixes #1875
Conversation
} | ||
|
||
/* Expanded */ | ||
#navigator-toolbox:is( |
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 dont really understand this change, why not just add it at the top with the rest?
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.
You're right. I removed it
display: flex; | ||
flex-direction: column; | ||
gap: 0 !important; | ||
|
||
margin-bottom: 8px; | ||
position: relative; | ||
|
||
&:has(tab:not([hidden]))::after { | ||
&::after { |
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.
Why remove this? It's supposed to be only a separator when there's pinned tabs
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 just moved up, because when there wore no pinned tabs, the 8px margin-bottom wore still being applied causing an alignment difference between collapsed and expanded.
- #vertical-pinned-tabs-container {
+ #vertical-pinned-tabs-container:has(tab:not([hidden])) {
Now when there is no pinned tab, there will be no separator nor margin
#navigator-toolbox[zen-expanded='true']:not([zen-user-hover='true']))) { | ||
& #tabbrowser-tabs { | ||
& .tabbrowser-tab { | ||
width: unset !important; |
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.
This woudnt make the tabs look squared, no?
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.
This prevent the tab to immediately shrink to its min width (36px) when no longer hovering
Without this it would look like this when collapsing:
Without it | With it |
---|---|
Screen.Recording.2024-10-03.at.14.16.51.mov |
Screen.Recording.2024-10-03.at.14.16.36.mov |
51a5c7a
to
e14e69b
Compare
It looks better |
I dont even know what's going on, too many changes |
e14e69b
to
562b956
Compare
562b956
to
b4c7e65
Compare
You say the compare after I force pushed? I did a rebase with main. The last changes in main created conflicts, so I rebased to solve them. Other than that as you pointed out:
I removed the unneeded code and moved it to the top. |
before - after
Screen.Recording.2024-10-02.at.19.23.47.mov