Skip to content

Commit e83c164

Browse files
committed
feat: added mobile enhancements for fundamentals completed badge
1 parent bfebb37 commit e83c164

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

src/pages/getting-started.tsx

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,24 @@ const GettingStartedPage: NextPageWithLayout<Lessons> = () => {
145145
fontSize: "xl",
146146
}}
147147
>
148-
{lesson.frontMatter.title}
149-
{lesson && lesson.completed && lesson.completed === true ? (
150-
<Badge
151-
ml="1"
152-
alignItems={"flex-end"}
153-
colorScheme="green"
154-
position="absolute"
155-
right={3}
156-
>
157-
Completed
158-
</Badge>
159-
) : null}
148+
<Flex direction={!isMobile ? "row" : "column"}>
149+
<Box>{lesson.frontMatter.title}</Box>
150+
<Box>
151+
{lesson &&
152+
lesson.completed &&
153+
lesson.completed === true ? (
154+
<Badge
155+
ml="1"
156+
alignItems={"flex-end"}
157+
colorScheme="green"
158+
position="absolute"
159+
right={3}
160+
>
161+
Completed
162+
</Badge>
163+
) : null}
164+
</Box>
165+
</Flex>
160166
</Button>
161167
</Link>
162168
</ListItem>

0 commit comments

Comments
 (0)