Skip to content
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

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

DanielSRS
Copy link
Contributor

@DanielSRS DanielSRS commented Oct 2, 2024

  • Fix misaligned window controls

before - after
Screenshot 2024-10-02 at 19 20 18

  • Add closing transition to sidebar when expand on hover is on and fixed some layout/spacing differences to make transition smoother
Screen.Recording.2024-10-02.at.19.23.47.mov

}

/* Expanded */
#navigator-toolbox:is(
Copy link
Member

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?

Copy link
Contributor Author

@DanielSRS DanielSRS Oct 3, 2024

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 {
Copy link
Member

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

Copy link
Contributor Author

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;
Copy link
Member

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?

Copy link
Contributor Author

@DanielSRS DanielSRS Oct 3, 2024

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

@Anthonyy232
Copy link

It looks better

@mauro-balades
Copy link
Member

I dont even know what's going on, too many changes

@DanielSRS
Copy link
Contributor Author

DanielSRS commented Oct 5, 2024

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 dont really understand this change, why not just add it at the top with the rest?

I removed the unneeded code and moved it to the top.

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.

3 participants