Skip to content

Commit ba2434f

Browse files
committed
Support mirrored navbar
1 parent b96ad2a commit ba2434f

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

airflow-core/src/airflow/ui/src/layouts/BaseLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const BaseLayout = ({ children }: PropsWithChildren) => {
3434
return (
3535
<>
3636
<Nav />
37-
<Box display="flex" flexDirection="column" h="100vh" ml={20} p={3}>
37+
<Box _ltr={{ ml: 20 }} _rtl={{ mr: 20 }} display="flex" flexDirection="column" h="100vh" p={3}>
3838
{children ?? <Outlet />}
3939
</Box>
4040
</>

airflow-core/src/airflow/ui/src/layouts/Nav/Nav.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,18 @@ export const Nav = () => {
4040

4141
return (
4242
<VStack
43+
_ltr={{
44+
left: 0,
45+
right: "auto",
46+
}}
47+
_rtl={{
48+
left: "auto",
49+
right: 0,
50+
}}
4351
alignItems="center"
4452
bg="blue.muted"
4553
height="100%"
4654
justifyContent="space-between"
47-
left={0}
4855
position="fixed"
4956
py={3}
5057
top={0}

0 commit comments

Comments
 (0)