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 3850701 commit 41cc25a
Show file tree
Hide file tree
Showing 10 changed files with 498 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 @@ -11626,12 +11626,6 @@ uninitializing
{
SidebarController
.
updateToolbarButton
(
)
;
SidebarController
.
recordVisibilitySetting
(
newValue
Expand Down Expand Up @@ -11674,6 +11668,12 @@ SidebarController
sidebarVerticalTabsEnabled
)
;
SidebarController
.
updateToolbarButton
(
)
;
}
}
)
Expand Down Expand Up @@ -11708,6 +11708,13 @@ SidebarController
uninitializing
)
{
SidebarController
.
recordTabsLayoutSetting
(
newValue
)
;
Services
.
prefs
Expand All @@ -11732,13 +11739,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 41cc25a

Please sign in to comment.