sidebery icon indicating copy to clipboard operation
sidebery copied to clipboard

Put pinned tabs above navigation bar

Open Akryum opened this issue 2 years ago • 5 comments

Description

Have the option to put pinned tabs above the navigation bar (where usually there are the panes). This would allow to better represent that pinned tabs are global to the panes.

For example:

Before:

image

After:

image

Akryum avatar Sep 23 '23 12:09 Akryum

I cannot access the HTML, and I never used vue, but this is the bar's class: .PinnedTabsBar.

Trying changing the order only does some weird thing:

.PinnedTabsBar {
  order: 1;
}

EDIT: I could debug the HTML, with this link: moz-extension://<extension URL>/sidebar/sidebar.html.

Unfortunately, for some reason, the groups tab is one block with class top-horizontal-box while the pinned tabs are within the big box with class main-box. So it's not trivial to make this change (at least for me). I wonder what was the reason for doing that, instead of having a flat structure.

real-felix avatar Sep 23 '23 16:09 real-felix

OK, I did it:

.PinnedTabsBar {
  position: fixed;
  top: 0;
  left: 0;
}

.top-horizontal-box {
  margin-top: var(--tabs-pinned-height);
}

It's crappy and brittle (may break in a further update), but it does the job currently.

Note that it won't work if you have your pinned tabs on several lines. If you have 2 lines, the margin must be calc(2 * var(--tabs-pinned-height)), etc.

real-felix avatar Sep 23 '23 17:09 real-felix

I'd like to second this enhancement request. I tried the workaround above with v5.1.1 and it seems to no longer work. For me it creates a space above the navigation bar that is the height of the pinned tabs but the pinned tabs themselves are not in it.

dvogel avatar Mar 11 '24 14:03 dvogel

I'd also like this option

No2515 avatar Mar 23 '24 20:03 No2515

related #1007

andsofine avatar Sep 04 '24 15:09 andsofine