Skip to content

Commit

Permalink
chore; update to sticky
Browse files Browse the repository at this point in the history
idk why it wasn't previously and is now tbh
  • Loading branch information
seaerchin committed Jul 25, 2024
1 parent b59c415 commit 2133de5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Flex, Heading, HStack, Icon, Spacer } from "@chakra-ui/react"
import { Box, Flex, Heading, HStack, Icon } from "@chakra-ui/react"
import { Button, IconButton } from "@opengovsg/design-system-react"
import { getComponentSchema } from "@opengovsg/isomer-components"
import { BiDollar, BiX } from "react-icons/bi"
Expand Down Expand Up @@ -74,8 +74,9 @@ export default function ComplexEditorStateDrawer(): JSX.Element {
<Box px="2rem" py="1rem">
<FormBuilder />
</Box>
<Spacer />
<Box
pos="sticky"
bottom={0}
bgColor="base.canvas.default"
boxShadow="md"
p="1.5rem 2rem 1.5rem 2rem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
Divider,
HStack,
Icon,
Spacer,
Text,
VStack,
} from "@chakra-ui/react"
Expand Down Expand Up @@ -148,12 +147,13 @@ export default function RootStateDrawer() {
</Droppable>
</DragDropContext>
</VStack>
<Spacer />
<Box
w="100%"
bgColor="base.canvas.default"
boxShadow="md"
p="1.5rem 2rem 1.5rem 2rem"
pos="sticky"
bottom={0}
>
<Button
w="100%"
Expand Down

0 comments on commit 2133de5

Please sign in to comment.