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

Bugfix/fix inconsistent tabs #2379

Closed
wants to merge 5 commits into from

Conversation

kwilcz
Copy link
Contributor

@kwilcz kwilcz commented Oct 28, 2024

Fixed issues with jumping icons & inconsistent tab layout.
Now all vertical tab layouts use common padding for TabsToolbar, consistent with the browser element separation.

Note:
Two issues were not fixed:

  • When First tab is used for hover-expand, padding is ignored for split second
  • For new tab button below tab list, padding is ignored for a split second

Before:

zen_HBUa9NxIMa

After:

zen_FtMF5G7GXd

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Bug labels Oct 28, 2024
@Anthonyy232
Copy link

Any chance of a fast animation like this PR instead of the instant snap back?
#1757

@kwilcz
Copy link
Contributor Author

kwilcz commented Oct 28, 2024

Any chance of a fast animation like this PR instead of the instant snap back? #1757

This is up to @mauro-balades, I just fixed an issue.

@@ -7,6 +7,10 @@
height: 100%;
}

#TabsToolbar {
padding: var(--zen-toolbox-padding);
Copy link
Member

Choose a reason for hiding this comment

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

Not sure about this, itll make the tabs be un-aligned

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It actually aligns all tabs and makes sure they all share common padding. Otherwise every tab must have its margin set, and they were not consistent between different modes.

Also setting it as --zen-toolbox-padding will allow additional consistency.

Then only difference is between expandable & non-expandable as the top border adds 1px padding.
See:
zen_UMlIAv9Bfa

@@ -300,7 +299,6 @@
box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.15) !important;
}
}
margin-inline: var(--tab-block-margin);
Copy link
Member

Choose a reason for hiding this comment

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

This is necessary for the shadows to appear

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Shadows are still there. The issue with this margin being here is the inconsistency.
See:
PowerToys CropAndLock_v7CKalk4EL

I can change it so all tabs (collapsed & expanded) have this margin applied.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Oct 29, 2024
@kwilcz
Copy link
Contributor Author

kwilcz commented Oct 31, 2024

Mostly fixed in recent updates.

@kwilcz kwilcz closed this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants