diff options
author | 2023-08-30 22:14:50 +0200 | |
---|---|---|
committer | 2023-08-31 00:57:52 +0200 | |
commit | d4504285d15aeb0cb1560a5f522ac1edc02b7d4c (patch) | |
tree | f279dd795fc715c31ebb3b46a45e8ab12ac6d8e2 /subprojects/frontend/src/PaneButtons.tsx | |
parent | feat(frontend): window pane switcher (diff) | |
download | refinery-d4504285d15aeb0cb1560a5f522ac1edc02b7d4c.tar.gz refinery-d4504285d15aeb0cb1560a5f522ac1edc02b7d4c.tar.zst refinery-d4504285d15aeb0cb1560a5f522ac1edc02b7d4c.zip |
feat(frontend): implement grid view
Diffstat (limited to 'subprojects/frontend/src/PaneButtons.tsx')
-rw-r--r-- | subprojects/frontend/src/PaneButtons.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/subprojects/frontend/src/PaneButtons.tsx b/subprojects/frontend/src/PaneButtons.tsx index 7b83171d..9cb02793 100644 --- a/subprojects/frontend/src/PaneButtons.tsx +++ b/subprojects/frontend/src/PaneButtons.tsx | |||
@@ -24,7 +24,7 @@ function PaneButtons({ | |||
24 | <ToggleButtonGroup | 24 | <ToggleButtonGroup |
25 | size={hideLabel ? 'small' : 'medium'} | 25 | size={hideLabel ? 'small' : 'medium'} |
26 | className="rounded" | 26 | className="rounded" |
27 | sx={{ | 27 | sx={(theme) => ({ |
28 | '.MuiToggleButton-root': { | 28 | '.MuiToggleButton-root': { |
29 | ...(hideLabel | 29 | ...(hideLabel |
30 | ? {} | 30 | ? {} |
@@ -33,6 +33,10 @@ function PaneButtons({ | |||
33 | }), | 33 | }), |
34 | fontSize: '1rem', | 34 | fontSize: '1rem', |
35 | lineHeight: '1.5', | 35 | lineHeight: '1.5', |
36 | fontWeight: theme.typography.fontWeightMedium ?? 500, | ||
37 | '&:not(.Mui-selected)': { | ||
38 | color: theme.palette.text.secondary, | ||
39 | }, | ||
36 | }, | 40 | }, |
37 | ...(hideLabel | 41 | ...(hideLabel |
38 | ? {} | 42 | ? {} |
@@ -41,7 +45,7 @@ function PaneButtons({ | |||
41 | margin: '0 6px 0 -4px', | 45 | margin: '0 6px 0 -4px', |
42 | }, | 46 | }, |
43 | }), | 47 | }), |
44 | }} | 48 | })} |
45 | > | 49 | > |
46 | <ToggleButton | 50 | <ToggleButton |
47 | value="code" | 51 | value="code" |