Skip to content

Commit 41cc25a

Browse files
committed
Bug 1939917 - Update Sidebar visibility settings and settings order r=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
1 parent 3850701 commit 41cc25a

10 files changed

+498
-1469
lines changed

browser/components/sidebar/SidebarState.sys.mjs

+3
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,9 @@ launcherExpanded
13191319
lazy
13201320
.
13211321
verticalTabsEnabled
1322+
&
1323+
&
1324+
visible
13221325
;
13231326
if
13241327
(

browser/components/sidebar/browser-sidebar.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -11626,12 +11626,6 @@ uninitializing
1162611626
{
1162711627
SidebarController
1162811628
.
11629-
updateToolbarButton
11630-
(
11631-
)
11632-
;
11633-
SidebarController
11634-
.
1163511629
recordVisibilitySetting
1163611630
(
1163711631
newValue
@@ -11674,6 +11668,12 @@ SidebarController
1167411668
sidebarVerticalTabsEnabled
1167511669
)
1167611670
;
11671+
SidebarController
11672+
.
11673+
updateToolbarButton
11674+
(
11675+
)
11676+
;
1167711677
}
1167811678
}
1167911679
)
@@ -11708,6 +11708,13 @@ SidebarController
1170811708
uninitializing
1170911709
)
1171011710
{
11711+
SidebarController
11712+
.
11713+
recordTabsLayoutSetting
11714+
(
11715+
newValue
11716+
)
11717+
;
1171111718
Services
1171211719
.
1171311720
prefs
@@ -11732,13 +11739,6 @@ sidebar
1173211739
"
1173311740
)
1173411741
;
11735-
SidebarController
11736-
.
11737-
recordTabsLayoutSetting
11738-
(
11739-
newValue
11740-
)
11741-
;
1174211742
}
1174311743
}
1174411744
)

browser/components/sidebar/sidebar-customize.css

+67-8
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,29 @@ medium
109109
}
110110
}
111111
.
112+
medium
113+
-
114+
top
115+
-
116+
margin
117+
{
118+
margin
119+
-
120+
block
121+
-
122+
start
123+
:
124+
var
125+
(
126+
-
127+
-
128+
space
129+
-
130+
medium
131+
)
132+
;
133+
}
134+
.
112135
customize
113136
-
114137
header
@@ -430,11 +453,6 @@ bold
430453
}
431454
moz
432455
-
433-
radio
434-
-
435-
group
436-
moz
437-
-
438456
fieldset
439457
{
440458
display
@@ -526,9 +544,6 @@ medium
526544
}
527545
moz
528546
-
529-
radio
530-
moz
531-
-
532547
checkbox
533548
{
534549
padding
@@ -576,6 +591,40 @@ color
576591
)
577592
;
578593
}
594+
>
595+
moz
596+
-
597+
checkbox
598+
:
599+
last
600+
-
601+
of
602+
-
603+
type
604+
{
605+
padding
606+
-
607+
block
608+
:
609+
0
610+
;
611+
}
612+
}
613+
.
614+
no
615+
-
616+
label
617+
:
618+
:
619+
part
620+
(
621+
label
622+
)
623+
{
624+
display
625+
:
626+
none
627+
;
579628
}
580629
#
581630
manage
@@ -623,6 +672,16 @@ medium
623672
customize
624673
-
625674
group
675+
:
676+
not
677+
(
678+
.
679+
no
680+
-
681+
end
682+
-
683+
margin
684+
)
626685
{
627686
margin
628687
-

0 commit comments

Comments
 (0)