Skip to content

Commit 3d05b3f

Browse files
committed
feat(LinkItem): When overflowing, clip test with ellipsis
1 parent dd5c14f commit 3d05b3f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Startpage/LinkContainer/LinkContainer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import { AccordionContainer, AccordionGroup } from "./Accordion/Accordion"
66
import * as Settings from "../Settings/settingsHandler"
77

88
const LinkItem = styled.a`
9-
width: fit-content;
9+
max-width: fit-content;
1010
white-space: nowrap;
1111
position: relative;
1212
padding: 10px 0 10px 30px;
1313
font-size: 1rem;
14+
overflow: hidden;
15+
text-overflow: ellipsis;
1416
1517
::before {
1618
position: absolute;

0 commit comments

Comments
 (0)