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

UI Regression: Inconsistent spacing in focused sidebar items #11957

Closed
fwcd opened this issue Sep 10, 2023 · 7 comments · Fixed by #11970
Closed

UI Regression: Inconsistent spacing in focused sidebar items #11957

fwcd opened this issue Sep 10, 2023 · 7 comments · Fixed by #11970

Comments

@fwcd
Copy link
Member

fwcd commented Sep 10, 2023

Bug Description

Just a tiny thing I've noticed, focusing a sidebar item adds some padding that disappears once the item loses focus:

Expected

Screen.Recording.2023-09-10.at.19.21.24.mov

Current

Screen.Recording.2023-09-10.at.19.24.13.mov

According to my regression finder, this was introduced between 393ddc4 (last good) and 7f79194 (first bad), i.e. in this diff.

cc @ronso0

Version

2.5-alpha-98-gf4692aa5ea (Qt 6.5.2)

OS

macOS 13.5

@fwcd fwcd added the bug label Sep 10, 2023
@ronso0 ronso0 added the QT6 label Sep 10, 2023
@ronso0
Copy link
Member

ronso0 commented Sep 10, 2023

Are both videos recorded with Qt6 builds?
Can you reproduce with Qt5? (I can't, using Ubuntu 20.04)

@fwcd
Copy link
Member Author

fwcd commented Sep 11, 2023

I can reproduce this with Qt 5.12.5 on the most recent main branch too (on macOS).

@ronso0
Copy link
Member

ronso0 commented Sep 11, 2023

I can't reproduce on main either, I assume it's some margin: 0px; missing 🤷‍♂️
I'll post a test PR soonish.

@ronso0
Copy link
Member

ronso0 commented Sep 11, 2023

Or you try adding

margin: 0px;
padding: 0px;

yourself here

WLibrarySidebar::item:selected:focus {
outline: none;
border: 0px;
}
WLibrarySidebar::item:!selected:focus {
outline: none;
border: 1px solid white;
}

Please check whether it still looks as expected when increasing the library row height in Pref > Interface.

@fwcd
Copy link
Member Author

fwcd commented Sep 11, 2023

Unfortunately, neither the QSS patch nor the library row height seem to affect this.

@fwcd
Copy link
Member Author

fwcd commented Sep 12, 2023

Did a more fine-grained bisect and found that b576824 introduced the regression.

@fwcd
Copy link
Member Author

fwcd commented Sep 12, 2023

Removing border: 0px; from WLibrarySidebar::item:selected:focus fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants