Skip to content

Commit 2276ecb

Browse files
Ahmed-Hakeemcaugnerfiji-flo
authored
enhance(breadcrumbs): show current and parent (not root) on mobile + add padding (#10315)
Co-authored-by: Claas Augner <[email protected]> Co-authored-by: Florian Dieminger <[email protected]>
1 parent f38adb3 commit 2276ecb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: client/src/ui/molecules/breadcrumbs/index.scss

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,19 @@
66
margin-right: auto;
77

88
ol {
9+
display: flex;
10+
flex-wrap: wrap;
911
line-height: 1.2;
12+
padding: 0.25rem 0;
13+
row-gap: 0.25rem;
1014
}
1115

1216
li {
1317
display: none;
1418
hyphens: auto;
1519

16-
// only show first and last on mobile
17-
&:first-child,
18-
&:last-child {
20+
// only show last two items on mobile
21+
&:nth-last-child(-n + 2) {
1922
display: inline-flex;
2023
}
2124

0 commit comments

Comments
 (0)