'Expand Tabs on Hover' causes entire app to scroll
Captchas
- [X] I have read the instructions.
- [X] I have searched existing issues and avoided creating duplicates.
- [X] I am not filing an enhancement request.
What happened?
When using the 'Expand Tabs on Hover' mode for the sidebar, hovering the sidebar to expand the tabs causes an additional scrollbar to appear on the right side of the window. scrolling in this mode scrolls the entire application, not just the tabs.
The issue only occurs in compact mode with the topbar hidden. The 'Expand Tabs on Hover' option notes that it 'won't work on compact mode', which is made more obvious by zen automatically disabling compact mode when selecting this option only for the sidebar. This suggests that it is intended to work when the top bar is compact, especially given that when enabling 'Expand Tabs on Hover' while in 'Hide Both' compact mode, zen switches to 'Hide Top Bar' compact mode. If 'Expand Tabs on Hover' is not intended to work on any compact mode, the automatic settings changes have not reflected this intention, and my own opinion is that it should work with compact top bar anyway, whether it was originally intended to or not.
Demo; extra scrollbar, entire app scrolling
The above video was recorded with zen mods disabled
What can also be seen in the video (maybe this should be a separate issue) is that when moving the cursor off of the expanded sidebar there is no collapse animation like there is for expand. This is quite jarring, especially when combined with the additional scrollbar as mentioned above causing a layout shift of the entire application.
Is this just #1718 again?
As far as I can tell, #1718 is a separate problem, as the examples given there do not use compact top bar and do not cause an additional scrollbar to appear on the right.
Reproducible?
- [X] I have checked that this issue cannot be reproduced on Mozilla Firefox.
Version
1.0.1-a.18
What platform are you seeing the problem on?
Linux
Relevant log output
No response
Hey there, @WillsterJohnson! I'm here to help you with any bugs, questions, or even becoming a contributor. I'm Dosu, a bot designed to assist you while you wait for a human maintainer. Let's tackle this bug together! 🤖
I found a similar closed issue that might be related to your problem: Compact mode with expanded tabs will prevent clicking on items on the left side of websites. This issue was closed with the note that it will be fixed in the next release [1].
Additionally, there is a related discussion on the sidebar's expand and collapse behavior: Sidebar Expand and Non Expand. This discussion is still open and might provide more context or insights into the issue you're experiencing [2].
Regarding the 'Expand Tabs on Hover' feature, it is known that this feature might not work in compact mode if both zen.view.compact and zen.view.compact.hide-tabbar preferences are set to true. In such cases, the feature is disabled to prevent conflicts [3]. This might explain why you're seeing unexpected behavior when using this feature in compact mode.
To continue talking to Dosu, mention @dosu.
Thanks dosu - this issue occurs when zen.view.compact.hide-toolbar is true and zen.view.compact.hide-tabbar is false, a state which is allowed (and automatically set in some cases) when using 'Expand Tabs on Hover'
Hi, @WillsterJohnson. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.
Issue Summary:
- The 'Expand Tabs on Hover' feature causes an additional scrollbar and affects the entire application scrolling.
- The issue is prominent in compact mode with the top bar hidden (
zen.view.compact.hide-toolbaristrueandzen.view.compact.hide-tabbarisfalse). - Another user, @GamerGirlandCo, reported the same issue even when compact mode is off.
Next Steps:
- Please let us know if this issue is still relevant to the latest version of the desktop repository by commenting here.
- If there is no further activity, this issue will be automatically closed in 7 days.
Thank you for your understanding and contribution!
been away over the new year and had some trouble updating to the latest beta but it's definitely still happening.
On the right there are two scrollbars;
- the shorter one is the scrollbar from the browser window, it scrolls the content of the webview
- the longer one is the scrollbar for zens ui, it scrolls the webview itself and does not change the scroll position within the webview The longer scrollbar should never exist. It serves no purpose. What's worse is it seems to vanish and reappear at random - while typing this comment, it's toggled off, back on, and back off again. I've left it a while and it seems to be staying off for now, but from experience I can guarantee it will be back for a little while by the end of the day.
Possible solution;
Absolutely and in all cases outright block everything in zen's ui from scrolling, with limited exceptions (eg, when there are many tabs, the list of tabs itself should scroll but none of it's parent containers should).
Iirc, zed mods can use css to style parts of the ui, so can we add to zen a * { overflow: hidden } and override that only when intended?
@dosu can you reopen this?
I've hit a roadblock with this one, @mr-cheff your insights would be highly valuable.
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other
@mr-cheff, the user has indicated that the issue with the scrollbars is still happening after their recent update attempts. They provided detailed observations and a possible solution regarding the UI's scrolling behavior. Could you please take a look and assist them?
Please confirm it is still a bug in 1.7.4b. "Expand on hover" is not a native feature of zen in the latest version
Can this be brought back as a native feature? pretty please?
It won't be brought back as a native feature , however you can use the mod Sidebar Expand on Hover