Skip to content

Commit

Permalink
[FEATURE] améliore l'affichage de PixStructureSwitcher (pix-15674)
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Dec 13, 2024
2 parents 5e45250 + 2132fc8 commit d907cb7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions addon/styles/_pix-structure-switcher.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@
@extend %pix-shadow-xs;

position: static;
width: auto;
min-width: 100%;
max-width: 316px;
width: 440px;
max-height: 80vh;
margin-left: var(--pix-spacing-6x) !important; // we need to override popperjs inline styles
margin-bottom: calc(-1 * var(--pix-spacing-3x)) !important;
margin-left: calc(-1 * var(--pix-spacing-4x)) !important;
overflow-y: auto;
border-radius: 8px;

Expand All @@ -47,7 +46,8 @@

.pix-navigation--opened &:not(.pix-select__dropdown--closed) {
display: block;
margin-top: var(--pix-spacing-4x) !important;
margin: var(--pix-spacing-4x) 0 !important;
margin-bottom: 0 !important;
}
}
}
Expand All @@ -61,18 +61,14 @@
border-top: none;
}

.pix-select-list-category__option--hidden {
display: none
}

.pix-select-list-category__option {
padding: var(--pix-spacing-2x) var(--pix-spacing-8x) var(--pix-spacing-2x) var(--pix-spacing-4x);
overflow-x: hidden;
// stylelint-disable-next-line custom-property-pattern
font-family: var(--_pix-font-family-title);
white-space: nowrap;
white-space: wrap;
text-align: left;
text-overflow: ellipsis;
word-break: break-word;
border-radius: var(--border-radius-2x);

&:focus:not(.pix-select-list-category__option--selected ) {
Expand All @@ -82,6 +78,10 @@
&:hover {
background-color: var(--pix-structure-bg-hover);
}

&--hidden {
display: none;
}
}

.pix-select-list-category__option--selected {
Expand Down
2 changes: 1 addition & 1 deletion tests/dummy/app/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { action } from '@ember/object';

export default class ModalPage extends Controller {
@tracked
structure = this.structures[1];
structure = this.structures[2];
structures = [
{
value: 1,
Expand Down

0 comments on commit d907cb7

Please sign in to comment.