Skip to content

Commit

Permalink
Truncate book title in breadcrumbs (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimurash committed Dec 16, 2024
1 parent 2f86ad6 commit 483bdbe
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Anchor, Breadcrumbs, Group } from '@mantine/core';
import { Anchor, Breadcrumbs, Group, Text } from '@mantine/core';
import React from 'react';

interface AnchorProps {
Expand All @@ -18,7 +18,9 @@ const BreadCrumbsComponent = ({ anchors }: BreadCrumbsComponentProps) => {
<Anchor href={item.href} key={index}>
<Group gap="xs">
{item.icon}
{item.title}
<Text span truncate="end">
{item.title}
</Text>
</Group>
</Anchor>
))}
Expand Down

0 comments on commit 483bdbe

Please sign in to comment.