aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/TopBar.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2023-08-31 15:38:12 +0200
committerLibravatar Kristóf Marussy <kristof@marussy.com>2023-08-31 15:52:30 +0200
commit4ba22718cce29f784f97e8a74733e53e15a1e4e4 (patch)
tree714240e902eb2843d94035eb377e3c38ddac95f1 /subprojects/frontend/src/TopBar.tsx
parentrefactor(frontend): compact relation table (diff)
downloadrefinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.tar.gz
refinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.tar.zst
refinery-4ba22718cce29f784f97e8a74733e53e15a1e4e4.zip
refactor(frontend): secondary pane switch shortcut
Diffstat (limited to 'subprojects/frontend/src/TopBar.tsx')
-rw-r--r--subprojects/frontend/src/TopBar.tsx11
1 files changed, 8 insertions, 3 deletions
diff --git a/subprojects/frontend/src/TopBar.tsx b/subprojects/frontend/src/TopBar.tsx
index cfeab6d7..867a24a0 100644
--- a/subprojects/frontend/src/TopBar.tsx
+++ b/subprojects/frontend/src/TopBar.tsx
@@ -101,10 +101,15 @@ export default observer(function TopBar(): JSX.Element {
101 py: 0.5, 101 py: 0.5,
102 }} 102 }}
103 > 103 >
104 <Typography variant="h6" component="h1" flexGrow={1}> 104 <Typography variant="h6" component="h1">
105 Refinery {import.meta.env.DEV && <DevModeBadge>Dev</DevModeBadge>} 105 Refinery {import.meta.env.DEV && <DevModeBadge>Dev</DevModeBadge>}
106 </Typography> 106 </Typography>
107 {medium && ( 107 <Stack direction="row" alignItems="center" flexGrow={1} marginLeft={1}>
108 {medium && !large && (
109 <PaneButtons themeStore={themeStore} hideLabel />
110 )}
111 </Stack>
112 {large && (
108 <Stack 113 <Stack
109 direction="row" 114 direction="row"
110 alignItems="center" 115 alignItems="center"
@@ -116,7 +121,7 @@ export default observer(function TopBar(): JSX.Element {
116 transform: 'translateX(-50%)', 121 transform: 'translateX(-50%)',
117 }} 122 }}
118 > 123 >
119 <PaneButtons themeStore={themeStore} hideLabel={!large} /> 124 <PaneButtons themeStore={themeStore} />
120 </Stack> 125 </Stack>
121 )} 126 )}
122 <Stack 127 <Stack