Skip to content

Commit

Permalink
Making parent flexes consistent, fix formatting of Announcements
Browse files Browse the repository at this point in the history
  • Loading branch information
Danie1T committed May 30, 2024
1 parent f0fccda commit a05abc1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
20 changes: 11 additions & 9 deletions frontend/src/components/pages/announcements/AnnouncementsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ const AnnouncementsPage = (): React.ReactElement => {
}, []);

return (
<Flex flexDir="row" alignItems="flex-start" w="100%">
<AnnouncementsGroups
announcements={announcements}
setSelectedGroup={setSelectedGroup}
/>
<AnnouncementsView
announcements={announcements}
selectedGroup={selectedGroup}
/>
<Flex flexDir="column" flexGrow={1}>
<Flex flexDir="row" alignItems="flex-start" w="100%" flexGrow={1}>
<AnnouncementsGroups
announcements={announcements}
setSelectedGroup={setSelectedGroup}
/>
<AnnouncementsView
announcements={announcements}
selectedGroup={selectedGroup}
/>
</Flex>
</Flex>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ const AnnouncementsList = ({ announcements, selectedGroup }: Props) => {
key={index}
backgroundColor="gray.100"
p="10px"
ml="38px"
mr="38px"
ml="30px"
mr="20px"
mt="20px"
borderRadius="10px"
w="83vh"
>
<Flex pl={2} align="center">
<Avatar name={announcement.author} src="https://bit.ly/2k1H1t6" />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/pages/tasks/TasksPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const TasksPage = (): React.ReactElement => {
}, [taskType]);

return (
<Flex flexDir="column" w="100%">
<Flex flexDir="column" flexGrow={1}>
<Tabs variant="horizontal" h="30px" mb={6}>
<TabList pl={6}>
<Tab
Expand Down

0 comments on commit a05abc1

Please sign in to comment.