Skip to content

Commit

Permalink
💄 optimize long breadcrumbs on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Feb 9, 2024
1 parent d7bfd23 commit 50666d7
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions frontend/styles/components/breadcrumb.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
.breadcrumb {
display: flex;
flex-wrap: nowrap;
align-items: center;
padding: $spacer * 0.5 0;
background-color: inherit;
overflow: hidden;
overflow: auto;
margin: 0;
gap: $spacer * 0.5;
scroll-snap-type: x;

&-item {
margin-right: $spacer * 0.5;
text-overflow: ellipsis;
overflow: hidden;
float: none;
white-space: nowrap;
scroll-snap-align: end;

& + .breadcrumb-item::before {
float: none;
}

&,
> * {
color: var(--#{$prefix}tertiary-color);
font-size: small;
font-size: $font-size-sm;
white-space: nowrap;

@include media-breakpoint-up(lg) {
Expand All @@ -24,8 +30,6 @@
}

&:last-child {
margin-right: none;

&,
> * {
color: var(--#{$prefix}body-color);
Expand All @@ -36,5 +40,4 @@
&-item + &-item {
padding-left: 0;
}

}

0 comments on commit 50666d7

Please sign in to comment.