desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Poorly formatted container selection menu when left clicking New Tab button

Open nataliepineapple opened this issue 1 year ago • 7 comments

Preliminary Checks

  • [x] I have read and understood the important section above.
  • [x] I have searched existing issues and avoided creating duplicates.
  • [x] I am not filing an enhancement request.
  • [x] I have checked that this issue cannot be reproduced on Mozilla Firefox.
  • [x] I have checked that this issue can be reproduced once I removed all my Mods and Custom CSS.

What happened?

When left clicking the New Tab button in the sidebar, with privacy.userContext.newTabContainerOnLeftClick.enabled set to 'true', the container selection menu has the following problems:

  • The text of each menu item cannot be clicked, and hovering over the text causes the menu item to become deselected;
  • Any spaces between words in a menu item are converted into a newline: Image

The issue doesn't happen when the New Tab button is right clicked: Image

The issue also doesn't happen ~in compact mode~ when the sidebar is collapsed; left clicking the New Tab button ~in compact mode~ when the sidebar is collapsed opens the same menu as right clicking does.

Expected behavior

Each menu item should be selectable when the text is hovered and clicked, and the text should be shown on a single line unless it's impossible to fit it all in without wrapping to a new line

Actual behavior

Menu items can't be selected by clicking on the text, and the text wraps to a newline whenever there's a space even if there is plenty of room to display the entire text on one line

Steps to reproduce

  1. Create a container which has a space in its name, e.g. "Testing testing"
  2. Tick the privacy.userContext.newTabContainerOnLeftClick.enabled setting in Preferences.
  3. ~Make sure you're not in compact mode.~ Make sure the sidebar isn't collapsed.
  4. Left click the New Tab button in the sidebar.

Screenshots and videos

No response

Version

1.12.10b

What platform are you seeing the problem on?

Linux (Tarball)

What component is this issue related to?

Tabs

Relevant log output if applicable


nataliepineapple avatar Jun 05 '25 19:06 nataliepineapple

I can also reproduce this issue on Windows and on version 1.12.9b. The issue does not occur on version 1.12.8b.

nataliepineapple avatar Jun 05 '25 19:06 nataliepineapple

Can also reproduce using a long press/click (without the extra pref you set). Thanks for reporting.

For me it does happen in compact mode (the auto hiding one), but doesn't in the collapsed layout (where tab are only icons).

Propheticus avatar Jun 05 '25 20:06 Propheticus

My bad, I was under the impression that "compact mode" was the collapsed sidebar layout.

nataliepineapple avatar Jun 05 '25 20:06 nataliepineapple

I'm sure this is a terrible hack, but as a workaround I've created a userChrome.css containing this:

menupopup.new-tab-popup menuitem {
  display: -webkit-box;
}

and that resolves the issue for me.

nataliepineapple avatar Jun 05 '25 22:06 nataliepineapple

Hi, @nataliepineapple. I'm Dosu, and I'm helping the desktop team manage their backlog. I'm marking this issue as stale.

Issue Summary

  • Formatting issue with the container selection menu in version 1.12.9b.
  • Menu items become unclickable, and spaces convert to newlines.
  • Issue does not occur in version 1.12.8b or with the collapsed sidebar layout.
  • Propheticus confirmed the issue and noted it also happens in compact mode.
  • You provided a userChrome.css workaround, which Propheticus confirmed as effective.

Next Steps

  • Is this issue still relevant to the latest version of the desktop repository? If so, please comment to keep the discussion open.
  • If no further activity occurs, this issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Jul 07 '25 16:07 dosubot[bot]

This issue is still present in the latest version of Zen and unresolved.

JohnTheDonut avatar Jul 25 '25 03:07 JohnTheDonut

tl;dr : long-click on the + New Tab results in a poorly formatted container selection, especially in collapsed layout:

Image

retested and reproducible in 1.15t / 20250820110632

Propheticus avatar Jul 25 '25 09:07 Propheticus