Skip to content

Commit

Permalink
use chakra sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelaZQ1 committed Mar 1, 2024
1 parent bc131de commit e4cbbdc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export const AddCourseModal: React.FC<AddCourseModalProps> = ({
direction="column"
height="300px"
overflow="scroll"
marginTop="4"
marginTop="sm"
>
{/* No course search */}
{!error && (!courses || courses.length === 0) && (
Expand Down Expand Up @@ -242,12 +242,12 @@ export const AddCourseModal: React.FC<AddCourseModalProps> = ({
</Flex>

{/* Selected Courses Area */}
<Flex padding="4" paddingBottom="0" direction="column">
<Flex padding="md" paddingBottom="0" direction="column">
<Text fontSize="md" fontWeight="bold">
Courses to Add:
</Text>
<VStack
paddingY="2"
paddingY="xs"
height="130px"
overflow="scroll"
alignItems="stretch"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const NUPathLabel: React.FC<NuPathLabelProps> = ({
}

return (
<Flex justifyContent="end" gap="1" flex="1" ml="xs">
<Flex justifyContent="end" gap="2xs" flex="1" ml="xs">
{nuPaths.map((nuPath) => (
<Flex
key={nuPaths.indexOf(nuPath)}
Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/components/AddCourseModal/SearchResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ export const SearchResult: React.FC<SearchResultProps> = ({
<Flex
justifyContent="space-between"
alignItems="end"
padding="1"
paddingY="2"
padding="2xs"
paddingY="xs"
borderBottom="1px"
borderColor="neutral.100"
>
<Flex width="100%" mr="md" alignItems="center" minH="25px">
<Box lineHeight="1.2">
<Text as="span" fontSize="sm" fontWeight="bold" marginRight="2">
<Text as="span" fontSize="sm" fontWeight="bold" marginRight="sm">
{getCourseDisplayString(course)}
</Text>
<Text as="span" fontSize="sm">
Expand Down

0 comments on commit e4cbbdc

Please sign in to comment.