tabCenterReborn: Add option to always maintain vertical tab open (#588)

Fixes #587
This commit is contained in:
Birdinfire 2023-04-11 02:22:17 +02:00 committed by GitHub
parent 7ba37ebaea
commit fb53d705b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 1 deletions

View File

@ -234,7 +234,8 @@ We also have optional features to enable support for some Firefox extensions.
Enable the vertical tab trough the extension : [Tab Center Reborn](https://addons.mozilla.org/en-US/firefox/addon/tabcenter-reborn/).
> **Note:** You also need to copy the contents of the file `configuration/extensions/tab-center-reborn.css` into the settings page of Tabcenter-reborn..
> **Note:** You also need to copy the contents of the file `configuration/extensions/tab-center-reborn.css` into the settings page of Tabcenter-reborn..\
> **Note2:** You can also maintain the vertical tab always open with `gnomeTheme.extensions.tabCenterReborn.alwaysOpen`
## Known bugs

View File

@ -39,6 +39,7 @@
min-width: 48px;
max-width: 48px;
overflow: hidden;
border-right: 1px solid var(--sidebar-border-color);
z-index: 1;
top: 0;
@ -117,3 +118,26 @@
}
}
}
@supports -moz-bool-pref("gnomeTheme.extensions.tabCenterReborn.alwaysOpen") {
#sidebar-box[sidebarcommand*="tabcenter"] #sidebar,
#sidebar-box[sidebarcommand*="tabcenter"] {
min-width: 10vw !important;
width: 30vw !important;
max-width: 250px !important;
z-index: 1 !important;
transition: all var(--transition-time) ease var(--delay);
}
#sidebar-box[sidebarcommand*="tabcenter"]:not([hidden]) {
position: relative;
margin-right: -50px;
}
@media (width >= 1200px) {
#sidebar-box[sidebarcommand*="tabcenter"]:hover #sidebar,
#sidebar-box[sidebarcommand*="tabcenter"]:hover {
max-width: 250px !important;
}
}
}