Closed Bug 1598563 Opened 5 years ago Closed 5 years ago

[meta] Change priority order of things moving into the toolbar overflow panel

Categories

(Firefox :: Toolbars and Customization, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: mak, Unassigned)

References

()

Details

(Keywords: meta)

Attachments

(1 obsolete file)

Verdi would like to give more space to the urlbar in crowded cases, that means:

  1. first shrink spacers
  2. then overflow searchbar
  3. then overflow right side buttons
  4. then overflow the home button

As a side note, some other browsers also remove the forward button in very crowded space, but this is not part of the mock-up, just an observation.

Blocks: 1588415
Assignee: nobody → htwyford
Status: NEW → ASSIGNED
Iteration: --- → 72.3 - Nov 18 - Dec 1

This could probably be broken down into threee parts:

  1. make spacers shrink more aggressively until they disappear, before touching anything else
  2. make the search bar (if present) be the first element to be moved into the overflow panel
  3. make the urlbar shrink a lot less aggressively

The issue with making the spacers shrink to nothing is that once the user enters customize view, they are impossible to manipulate. My solution thus far is to remove their min-width but adding a 4px min-width in customize mode. With their border, this makes them appear as thick white lines:

toolbarpaletteitem[place=toolbar][id^=wrapper-customizableui-special-spring],
toolbarspring {
  -moz-box-flex: 1;
  max-width: 112px;
}

:root[customize-entered] toolbarpaletteitem[place=toolbar][id^=wrapper-customizableui-special-spring],
:root[customize-entered] toolbarspring {
  /* At very small window widths, expand the springs slightly so that they
     can be manipulated with the mouse. */
  min-width: 4px;
}

They shrink to nothing at about the same rate as Verdi's spec without the added complexity of actually removing them.

Agree, we should not remove them, and they should likely retain their aspect of "spacers" in customize mode, so you can likely bump up those 4px a bit.
In customize mode the urlbar can be shrinked a lot, it doesn't have to be readable.

This patch is slightly more aggressive in shrinking the Urlbar in the ~900-700px range than Verdi's spec. I was already surprised at how un-aggressive the shrinking is in this patch so I thought I'd put it up for review before we make it even less aggressive.

No longer blocks: 1588415

We decided in the Phabricator thread to meet on Monday to discuss these changes. This probably won't land until mid-next week at the earliest, so I'm changing the iteration.

Iteration: 72.3 - Nov 18 - Dec 1 → 73.1 - Dec 2 - Dec 15
Blocks: 1585980
Blocks: 1601334
Assignee: htwyford → nobody
Status: ASSIGNED → NEW
Keywords: blocked-ux
Attachment #9111613 - Attachment is obsolete: true
Iteration: 73.1 - Dec 2 - Dec 15 → ---
Blocks: 1604788
No longer blocks: 1604788
No longer blocks: 1601334
Depends on: 1601334
Priority: P2 → P3
Type: task → enhancement
Blocks: 1610497
No longer blocks: 1610497
Depends on: 1610497
  • Harry mentioned to start looking buggy Home button overflow behavior (setting n-i to raise your awareness).
  • Verdi suggests the following change to mitigate concerns:
    1. first shrink spacers
    2. then overflow right side buttons
    3. then overflow searchbar
    4. then overflow the home button
Flags: needinfo?(htwyford)
Priority: P3 → P2

(So essentially flip the order of 2. and 3. from comment 0)

Priority: P2 → P3

(In reply to Mike de Boer [:mikedeboer] from comment #7)

2. then overflow right side buttons
3. then overflow searchbar

I still agree with Gijs (see previous review comments) that this doesn't seem to have enough benefits vs the cost of managing and maintaining code for different priorities. There is already a system to define overflow priority that is the order of things in the toolbar, and it's fully customizable by the user, plus very simple to maintain. We can play with many other things before priorities.

Apart from the buggy home button overflowing, we should rather evaluate overflows of the action buttons and the zoom indicator, that are inside the urlbar and can easily take up space, and apparently they don't overflow at all.

(In reply to Marco Bonardo [:mak] from comment #9)

(In reply to Mike de Boer [:mikedeboer] from comment #7)

2. then overflow right side buttons
3. then overflow searchbar

I still agree with Gijs (see previous review comments) that this doesn't seem to have enough benefits vs the cost of managing and maintaining code for different priorities. There is already a system to define overflow priority that is the order of things in the toolbar, and it's fully customizable by the user, plus very simple to maintain. We can play with many other things before priorities.

Apart from the buggy home button overflowing, we should rather evaluate overflows of the action buttons and the zoom indicator, that are inside the urlbar and can easily take up space, and apparently they don't overflow at all.

Good points, thanks! So I definitely agree on an overflow strategy for the action buttons, since that's completely absent at this point. My uneducated guess is that they should just return to the meatballs menu before the URLBar starts shrinking, no? Of course, this'll be informed by UX team input, but throwing it out there for discussion.

Additionally, considering the validity of Gijs' statement(s), I consider the custom overflow order implementation on hold for now.

(In reply to Mike de Boer [:mikedeboer] from comment #10)

Good points, thanks! So I definitely agree on an overflow strategy for the action buttons, since that's completely absent at this point. My uneducated guess is that they should just return to the meatballs menu before the URLBar starts shrinking, no? Of course, this'll be informed by UX team input, but throwing it out there for discussion.

Drew, since you did the initial implementation of the action buttons, does this make sense to you? The idea here is that when a certain width threshold of the URLBar is hit - whilst the user is resizing the window, for example - that the action buttons that are visible in the URLBar start flowing back into the meatball menu.
I acknowledge that this adds another state/ mode for the buttons to be, which slightly complicates things when customizing the action buttons whilst their overflowing (inside the menu temporarily), but since that state is trainsent (i.e. not persisted across sessions), I think it may be ok. Thoughts?

Flags: needinfo?(adw)

That makes sense to me too. iirc it was even discussed back when we first implemented the page actions. There might even be an open bug. As you say, the fact that this state would be transient probably makes this a lot easier to implement than it would be otherwise. It definitely seems doable.

Flags: needinfo?(adw)

(In reply to Drew Willcoxon :adw from comment #13)

There might even be an open bug.

bug 1401835 :-)

See Also: → 1401835
Depends on: 1611930

Clearing ni since I filed bug 1611930. Thanks for linking it, Dao.

Flags: needinfo?(htwyford)
Points: 5 → ---
Keywords: meta
Summary: Change priority order of things moving into the toolbar overflow panel → [meta] Change priority order of things moving into the toolbar overflow panel
Depends on: 1612304
Depends on: 1612794
Depends on: 1613044

(In reply to Mike de Boer [:mikedeboer] from comment #7)

  • Verdi suggests the following change to mitigate concerns:
    1. first shrink spacers
    2. then overflow right side buttons
    3. then overflow searchbar
    4. then overflow the home button

This is what we do now.

Status: NEW → RESOLVED
Closed: 5 years ago
Keywords: blocked-ux
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: