Skip to content

Commit

Permalink
Bug 1939917 - Update Sidebar visibility settings and settings order r…
Browse files Browse the repository at this point in the history
…=sidebar-reviewers,fluent-reviewers,desktop-theme-reviewers,bolsson,sclements,hjones

- change order of settings as per spec
- only show visibilty settings if vertical tabs enabled

Depends on D234592

Differential Revision: https://phabricator.services.mozilla.com/D235178

UltraBlame original commit: 935aaee05e8618c18b5e1c9a5ab95fe0337a42b9
  • Loading branch information
marco-c committed Feb 1, 2025
1 parent b8cd4f6 commit 95a22ff
Show file tree
Hide file tree
Showing 10 changed files with 482 additions and 1,469 deletions.
3 changes: 3 additions & 0 deletions browser/components/sidebar/SidebarState.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,9 @@ launcherExpanded
lazy
.
verticalTabsEnabled
&
&
visible
;
if
(
Expand Down
26 changes: 13 additions & 13 deletions browser/components/sidebar/browser-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -8637,12 +8637,6 @@ uninitializing
{
SidebarController
.
updateToolbarButton
(
)
;
SidebarController
.
recordVisibilitySetting
(
newValue
Expand Down Expand Up @@ -8685,6 +8679,12 @@ SidebarController
sidebarVerticalTabsEnabled
)
;
SidebarController
.
updateToolbarButton
(
)
;
}
}
)
Expand Down Expand Up @@ -8719,6 +8719,13 @@ SidebarController
uninitializing
)
{
SidebarController
.
recordTabsLayoutSetting
(
newValue
)
;
Services
.
prefs
Expand All @@ -8743,13 +8750,6 @@ sidebar
"
)
;
SidebarController
.
recordTabsLayoutSetting
(
newValue
)
;
}
}
)
Expand Down
75 changes: 67 additions & 8 deletions browser/components/sidebar/sidebar-customize.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,29 @@ medium
}
}
.
medium
-
top
-
margin
{
margin
-
block
-
start
:
var
(
-
-
space
-
medium
)
;
}
.
customize
-
header
Expand Down Expand Up @@ -430,11 +453,6 @@ bold
}
moz
-
radio
-
group
moz
-
fieldset
{
display
Expand Down Expand Up @@ -526,9 +544,6 @@ medium
}
moz
-
radio
moz
-
checkbox
{
padding
Expand Down Expand Up @@ -576,6 +591,40 @@ color
)
;
}
>
moz
-
checkbox
:
last
-
of
-
type
{
padding
-
block
:
0
;
}
}
.
no
-
label
:
:
part
(
label
)
{
display
:
none
;
}
#
manage
Expand Down Expand Up @@ -623,6 +672,16 @@ medium
customize
-
group
:
not
(
.
no
-
end
-
margin
)
{
margin
-
Expand Down
Loading

0 comments on commit 95a22ff

Please sign in to comment.