zen-browser / desktop

🌀 Experience tranquillity while browsing the web without people tracking you!
https://zen-browser.app
Mozilla Public License 2.0
16.65k stars 396 forks source link

Tabs Do Not Expand On Hover After Toggling Compact Mode #2569

Open Espasant3 opened 2 hours ago

Espasant3 commented 2 hours ago

Captchas

What happened?

Description:

If you enable compact mode and disable it if you have in the appearance settings selected that tabs expand on hover, when compact mode is disabled, the browser will behave as if it had it set to "do not expand tabs by default".

Steps to reproduce:

  1. Open Zen Browser.

  2. Activate Compact Mode using keyboard shortcut or directly from settings.

  3. Deactivate Compact Mode using keyboard shortcut or directly from settings.

  4. Ensure that in Look and Feel settings, in the "Sidebar and tabs layout" section the option for tabs to expand on hover is selected.

  5. Try to expand a tab on hover and check the settings.

Expected Behavior:

Tabs should expand when the mouse hovers over them even if i have enabled and disabled the compact mode.

Actual Behavior:

After deactivating Compact Mode, the browser behaves as if the "do not expand tabs by default" option is selected, despite the appearance settings being configured to expand tabs on hover.

Alternative solution:

It could be warned that the compact mode changes the usage settings and when it is activated that it automatically switches to the "do not expand tabs by default" behavior. It will also need to be warned in the settings in the "Sidebar and tabs layout" section in the same way that expanding tabs on hover option is reported doesn't work in compact mode.

Reproducible?

Version

1.0.1-a.17

What platform are you seeing the problem on?

Windows, Linux

Relevant log output

No response

dosubot[bot] commented 2 hours ago

Hey @Espasant3! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together.

There is a known issue related to the behavior you're experiencing. The problem arises because the toggleExpand function in the Zen Browser codebase sets the preference zen.view.sidebar-expanded.on-hover to false when the sidebar is expanded, which disables hover detection. This setting is not automatically reverted when Compact Mode is toggled off, leading to the behavior you described [1][2].

Additionally, there is an open issue titled Sidebar Expand Setting Incorrectly Reverts to Default After Disabling Compact Mode that might be related to your problem. This issue is still open and was last updated on October 15, 2024 [3].

You might want to follow that issue for updates or potential fixes.

To continue talking to Dosu, mention @dosu.

Espasant3 commented 1 hour ago

@dosu i found this problem too in linux (i forgot at first to put it in the issue so i edited later) which led me to think that it was somehow different, but it is true that the core problem is the same as the issue you just mentioned so it cannot be considered a new issue.

dosubot[bot] commented 1 hour ago

¡Hola @Espasant3! Parece que estás compartiendo tus pensamientos sobre un problema que encontraste. Sin embargo, mi función principal es ayudarte con bugs, preguntas técnicas y conocimientos de ingeniería. Si crees que debería haber respondido a esto de otra manera, no dudes en contactar al Dosu Team. ¡Estoy aquí para ayudarte con cualquier otra consulta técnica que tengas! 😊

To continue talking to Dosu, mention @dosu.