Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] améliore l'affichage de PixStructureSwitcher (pix-15674) #788

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading