File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.settingSection {
2- padding -bottom: 16px ;
2+ margin -bottom: 16px ;
33 display : flex;
44 flex-direction : column;
55 gap : 4px ;
Original file line number Diff line number Diff line change 11.nav {
22 display : flex;
33 flex-direction : column;
4+ gap : 32px ;
45}
56
67.navLink {
78 display : inline-block;
8- padding : 15px ;
99 color : var (--text );
1010 font-weight : bold;
1111 text-decoration : none;
Original file line number Diff line number Diff line change 88}
99
1010.centered {
11- display : flex;
11+ display : grid;
12+ grid-template-columns : 500px ;
1213 justify-content : center;
13- scrollbar-gutter : stable;
14+ }
15+
16+ .centeredViewContent {
17+ position : relative;
1418}
1519
1620.hasPadding {
Original file line number Diff line number Diff line change @@ -35,6 +35,14 @@ export default function View(props: Props) {
3535 ) ;
3636 }
3737
38+ if ( props . layout === 'centered' ) {
39+ return (
40+ < div className = { cx ( viewClassNames , contentClassNames ) } >
41+ < div className = { styles . centeredViewContent } > { props . children } </ div >
42+ </ div >
43+ ) ;
44+ }
45+
3846 return (
3947 < div className = { cx ( viewClassNames , contentClassNames ) } >
4048 { props . children }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function ViewSettingsAbout() {
2626 const { t } = useLingui ( ) ;
2727
2828 return (
29- < div className = "setting setting-about" >
29+ < >
3030 < Setting . Section >
3131 < Setting . Title >
3232 < Trans > About Museeks</ Trans >
@@ -121,6 +121,6 @@ function ViewSettingsAbout() {
121121 </ ExternalButton >
122122 </ Flexbox >
123123 </ Setting . Section >
124- </ div >
124+ </ >
125125 ) ;
126126}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ function ViewSettingsAudio() {
2020 const { t } = useLingui ( ) ;
2121
2222 return (
23- < div className = "setting setting-audio" >
23+ < >
2424 < Setting . Section >
2525 < Setting . Input
2626 label = { t `Playback rate` }
@@ -54,6 +54,6 @@ function ViewSettingsAudio() {
5454 onChange = { useInvalidateCallback ( SettingsAPI . toggleFollowPlayingTrack ) }
5555 />
5656 </ Setting . Section >
57- </ div >
57+ </ >
5858 ) ;
5959}
Original file line number Diff line number Diff line change 1- .settingsNav {
2- padding : 0 30px ;
3- width : 170px ;
4- margin-left : -150px ;
5- }
6-
7- .settingsContent {
8- padding : 10px 15px ;
9- width : 400px ;
10- max-width : calc (100% - 170px );
1+ .nav {
2+ position : absolute;
3+ right : 100% ;
4+ margin-right : 60px ;
115}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export const Route = createFileRoute('/settings')({
3636function ViewSettings ( ) {
3737 return (
3838 < View hasPadding layout = "centered" >
39- < div className = { styles . settingsNav } >
39+ < div className = { styles . nav } >
4040 < SettingsNav >
4141 < SettingsNavLink to = "/settings/library" >
4242 < Trans > Library</ Trans >
@@ -53,9 +53,7 @@ function ViewSettings() {
5353 </ SettingsNav >
5454 </ div >
5555
56- < div className = { styles . settingsContent } >
57- < Outlet />
58- </ div >
56+ < Outlet />
5957 </ View >
6058 ) ;
6159}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function ViewSettingsUI() {
2121 const invalidate = useInvalidate ( ) ;
2222
2323 return (
24- < div className = "setting setting-interface" >
24+ < >
2525 < Setting . Section >
2626 < Setting . Select
2727 label = { t `Theme` }
@@ -117,7 +117,7 @@ function ViewSettingsUI() {
117117 onChange = { useInvalidateCallback ( SettingsAPI . toggleSleepBlocker ) }
118118 />
119119 </ Setting . Section >
120- </ div >
120+ </ >
121121 ) ;
122122}
123123
You can’t perform that action at this time.
0 commit comments