mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-05 09:26:34 +00:00
chore: Pref cleanup, b=no-bug, c=glance, tabs
This commit is contained in:
@@ -1149,11 +1149,6 @@ Preferences.addAll([
|
||||
type: 'bool',
|
||||
default: true,
|
||||
},
|
||||
{
|
||||
id: 'zen.view.show-newtab-button-border-top',
|
||||
type: 'bool',
|
||||
default: false,
|
||||
},
|
||||
{
|
||||
id: 'zen.view.show-newtab-button-top',
|
||||
type: 'bool',
|
||||
|
@@ -36,9 +36,6 @@
|
||||
data-l10n-id="zen-vertical-tabs-newtab-on-tab-list"
|
||||
preference="zen.tabs.show-newtab-vertical"/>
|
||||
<vbox class="indent">
|
||||
<checkbox id="zenLooksAndFeelShowTopNewtabBorder"
|
||||
data-l10n-id="zen-vertical-tabs-newtab-top-button-border"
|
||||
preference="zen.view.show-newtab-button-border-top"/>
|
||||
<checkbox id="zenLooksAndFeelMoveNewtabToTop"
|
||||
data-l10n-id="zen-vertical-tabs-newtab-top-button-up"
|
||||
preference="zen.view.show-newtab-button-top"/>
|
||||
|
@@ -211,7 +211,7 @@
|
||||
{
|
||||
duration: 0.4,
|
||||
type: 'spring',
|
||||
bounce: 0.3,
|
||||
bounce: 0.25,
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
|
@@ -1226,29 +1226,6 @@
|
||||
@media -moz-pref('zen.view.show-newtab-button-top') {
|
||||
order: -1;
|
||||
}
|
||||
|
||||
/* Add a separator line above the button if preferences are set and there are tabs */
|
||||
@media -moz-pref('zen.view.show-newtab-button-border-top') and (not -moz-pref('zen.view.show-newtab-button-top')) {
|
||||
#tabbrowser-arrowscrollbox:has(tab:not([hidden])) & {
|
||||
/* Only if tabs exist */
|
||||
margin-top: 15px; /* Space above */
|
||||
position: relative; /* For pseudo-element */
|
||||
&::before {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 1px;
|
||||
background: light-dark(
|
||||
rgba(1, 1, 1, 0.075),
|
||||
rgba(255, 255, 255, 0.1)
|
||||
); /* Separator color */
|
||||
width: 98%; /* Near full width */
|
||||
position: absolute;
|
||||
top: -8px; /* Position above the button */
|
||||
left: 50%;
|
||||
transform: translateX(-50%); /* Center horizontally */
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user