Skip to content

Commit

Permalink
fix(navigation): force fluid layout with wordbreak
Browse files Browse the repository at this point in the history
  • Loading branch information
lionelB committed Nov 28, 2024
1 parent dc3d2a1 commit 3babdcb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion addon/styles/_pix-app-layout.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.pix-app-layout {
--pix-navigation-width: 13.375rem;

display: grid;
grid-template-columns: minmax(214px, auto) 1fr;
grid-template-columns: var(--pix-navigation-width) 1fr;
gap: var(--pix-spacing-6x);
padding: var(--pix-spacing-6x);

Expand Down
6 changes: 5 additions & 1 deletion addon/styles/_pix-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
gap:var(--pix-spacing-6x);
align-items: center;
justify-content: space-between;
min-width: 214px;
min-width: var(--pix-navigation-width);
height: auto;
min-height: calc(100vh - var(--pix-spacing-6x) * 2);

Expand Down Expand Up @@ -119,6 +119,10 @@

@extend %pix-body-s;

p {
word-break: break-all;
}

@include device-is('mobile') {
display: none;

Expand Down
8 changes: 8 additions & 0 deletions addon/styles/_pix-structure-switcher.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@
text-overflow: ellipsis;
border-radius: var(--border-radius-2x);

&:focus:not(.pix-select-list-category__option--selected ) {
background-color: var(--pix-structure-bg-hover);
}

&:hover {
background-color: var(--pix-structure-bg-hover);
}
Expand All @@ -88,5 +92,9 @@
&:hover {
background-color: var(--pix-navigation-color);
}

&:focus {
color: var(--pix-neutral-800)
}
}
}

0 comments on commit 3babdcb

Please sign in to comment.