Skip to content

Commit

Permalink
fix helper responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmagnus committed Feb 20, 2024
1 parent ad4148f commit 8fa0ec9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion frontend/src/app/core/pages/cost-center/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ export const CostCenter: React.FC = () => {
w="full"
justifyContent="center"
gap="1.5rem"
pb="3.5rem"
>
<Flex maxW="966px" flexDir="column" w="full">
<CostCenterTemplate
Expand All @@ -306,12 +307,27 @@ export const CostCenter: React.FC = () => {
<Text color="gray.900" lineHeight="22px" fontSize="sm">
{operatingExpensesHelperP1}
</Text>
<Text color="gray.900" lineHeight="22px" fontSize="sm" mt="1rem">
<Text
color="gray.900"
lineHeight="22px"
fontSize="sm"
mt="1rem"
>
{operatingExpensesHelperP2}
</Text>
</ActionHelper>
</VStack>
)}
{!isLargerThanMd && (
<ActionHelper title={'About Operating Expenses'}>
<Text color="gray.900" lineHeight="22px" fontSize="sm">
{operatingExpensesHelperP1}
</Text>
<Text color="gray.900" lineHeight="22px" fontSize="sm" mt="1rem">
{operatingExpensesHelperP2}
</Text>
</ActionHelper>
)}
</Flex>
</Sidebar>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/templates/cost-center/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const CostCenterTemplate: React.FC<ICostCenterTemplate> = ({
const [isSmallerThanMd] = useMediaQuery('(max-width: 768px)')

return (
<Flex flexDir="column" w="full" pb="3.5rem">
<Flex flexDir="column" w="full">
<Flex maxW={MAX_PAGE_WIDTH} alignSelf="center" flexDir="column" w="full">
<Flex
justifyContent="space-between"
Expand Down

0 comments on commit 8fa0ec9

Please sign in to comment.