-
Notifications
You must be signed in to change notification settings - Fork 473
[Bug] New tab three-dot menu should be wider when not signed in #10133
Comments
Tagging @violasong and @brampitoyo for feedback |
Excuse me, but why not keeping current layout from stable Firefox ("Desktop site" string is absent from home/new tab page 3-dot menu since it doesn't have desktop layout)? And narrower 3-dot menu, as before, I think looks a bit cleaner and easier on the eyes as it doesn't obstruct as much content "Synced tabs" instead of that long email string looked pretty reasonable, too |
This is not for a desktop layout of the home screen but to request the desktop version of the website you intend to load in a new tab. For reference: Chrome also shows this option in the home screen menu.
This is both off-topic. This issue is about the minimum width of the menu for users who are not signed in and therefore there is no e-mail-address in the menu. It's also not about the menu layout in general. See mozilla-mobile/fenix#17796 as meta issue for the new menu. |
The menu is as wide as needed to show the widest menu item (with a maximum set). |
But is it necessary to show the email address at all?? |
I though at first that this might be an Android bug so I've created a toy project in which to test the Android widget that that menu item uses - a SwitchCompat, also in the hope that this could be used to report the issue to Google. |
This was a bug for which many planets had to be perfectly aligned:
All this will lead to the item returning a smaller width to |
Moving the ticket to AC where I'll open a PR to fix it. |
…right dimensions A BrowserMenuCompoundButton setup with compound drawables and used in our BrowserMenu configured with a DynamicWidthRecyclerVIew will return a width smaller with the size + padding of the compound drawables. By replacing the default `inherit` layout direction for the initial onMeasure we ensure the menu will also count the bounds of the compound drawables.
…right dimensions A BrowserMenuCompoundButton setup with compound drawables and used in our BrowserMenu configured with a DynamicWidthRecyclerVIew will return a width smaller with the size + padding of the compound drawables. By replacing the default `inherit` layout direction for the initial onMeasure we ensure the menu will also count the bounds of the compound drawables.
A BrowserMenuCompoundButton setup with compound drawables and used in our BrowserMenu configured with a DynamicWidthRecyclerVIew will return a width smaller with the size + padding of the compound drawables. By replacing the default `inherit` layout direction for the initial onMeasure we ensure the menu will also count the bounds of the compound drawables.
Moving the ticket from Fenix to AC wasn't the best choice. |
…right dimensions A BrowserMenuCompoundButton setup with compound drawables and used in our BrowserMenu configured with a DynamicWidthRecyclerVIew will return a width smaller with the size + padding of the compound drawables. By replacing the default `inherit` layout direction for the initial onMeasure we ensure the menu will also count the bounds of the compound drawables.
A BrowserMenuCompoundButton setup with compound drawables and used in our BrowserMenu configured with a DynamicWidthRecyclerVIew will return a width smaller with the size + padding of the compound drawables. By replacing the default `inherit` layout direction for the initial onMeasure we ensure the menu will also count the bounds of the compound drawables. (cherry picked from commit a0a9315) # Conflicts: # docs/changelog.md
…right dimensions A BrowserMenuCompoundButton setup with compound drawables and used in our BrowserMenu configured with a DynamicWidthRecyclerVIew will return a width smaller with the size + padding of the compound drawables. By replacing the default `inherit` layout direction for the initial onMeasure we ensure the menu will also count the bounds of the compound drawables.
A BrowserMenuCompoundButton setup with compound drawables and used in our BrowserMenu configured with a DynamicWidthRecyclerVIew will return a width smaller with the size + padding of the compound drawables. By replacing the default `inherit` layout direction for the initial onMeasure we ensure the menu will also count the bounds of the compound drawables.
This was verified on Fenix - mozilla-mobile/fenix#19310 (comment) |
When we're signed in to sync, the menu is wide enough to see the whole "Desktop Site" string. But when we're signed out, "Desktop site" gets cut off. I think the minimum width should allow us to see that whole string (in En-US)
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: