Skip to content

Commit

Permalink
fix: horizontal overflow in glossary (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximgrs authored Sep 5, 2024
1 parent 653e6b7 commit 1d66bf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/slices/Glossary/Glossary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const Glossary: React.FC<GlossaryProps> = ({ slice }: GlossaryProps) => {
<GridItem key={item.slug}>
<Flex mb="2" gap="1.5" alignItems="center">
<Heading
wordBreak="break-word"
size="xl"
id={item.slug}
scrollMarginTop="calc(var(--header-height) + var(--boemly-sizes-10))"
Expand All @@ -90,7 +91,9 @@ export const Glossary: React.FC<GlossaryProps> = ({ slice }: GlossaryProps) => {
onClick={async () => handleAnchorClick(item.slug)}
/>
</Flex>
<Text color="black">{item.text}</Text>
<Text color="black" wordBreak="break-word">
{item.text}
</Text>
</GridItem>
))}
</SimpleGrid>
Expand Down

0 comments on commit 1d66bf2

Please sign in to comment.