Open Bug 1963643 Opened 1 year ago Updated 2 months ago

When dragging a tab to pin it, transform full size tab to pinned size

Categories

(Firefox :: Sidebar, enhancement, P2)

enhancement

Tracking

()

People

(Reporter: nsharpley, Assigned: nsharpley)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fidefe-sidebar])

Once the dragged tab enters the pinned tab area, it should shrink to pinned tab size as per spec.

Assignee: nobody → nsharpley
Depends on: 1964534
Blocks: 1970666

This seems pretty straight forward EXCEPT that simply transforming the size won’t be enough - for multiselected tabs, the tabs will need to translate to be beside the dragged tab as they shrink/expand. This might involve some more math and makes multiselected dragged tabs from the pinned grid complicated.

Alternatively, I have talked to Yulia about other possibilities, such as stacking the multiselected tabs on drag instead of moving them adjacent to each other (other browsers do this) - this would make things easier and prettier for when there are MANY selected dragged tabs, when the multiselected dragged tabs need to wrap a row in the grid, and when transforming the size when dragging between pinned and unpinned containers. I think this would be a bigger task to rewrite the animations for the background tabs though, so as only to take up the space of one tab, but food for thought before tackling this!

NI-ing for thoughts on the possibility of stacking multiselected tabs on drag? This would be a good precursor to tackling this bug/feature.

Flags: needinfo?(sthompson)
Flags: needinfo?(sclements)
Flags: needinfo?(sclements)
Depends on: 1964535

Oh, dear, I missed this needinfo. I'll think on it some more, but my initial reaction is that any of these approaches would have their own complications. I think rerunning moveTogetherSelectedTabs to recalculate the movingTabSize/middleItemSize might work out fine.

Stacking/combining the dragged tabs is interesting. Safari appears to hide all selected tabs other than the dragged tab and redistributes the tab strip space. I'm using Safari 17.6 and I see bad behavior when I have 2 pinned tabs + 1 unpinned tab, select both pinned tabs, then drag the pinned tabs to the right. The unpinned tab takes on a broken hybrid appearance between a pinned and unpinned tab. We'll have plenty of math and testing to do either way :)

Flags: needinfo?(sthompson)
Blocks: 1964535
No longer depends on: 1964535
Assignee: nsharpley → kcochrane
Status: NEW → ASSIGNED
Blocks: 1972514
Depends on: 1983124
Assignee: kcochrane → nobody
Status: ASSIGNED → NEW
Assignee: nobody → nsharpley
You need to log in before you can comment on or make changes to this bug.