diff --git a/src/_mixins.scss b/src/_mixins.scss index 5c1cd1f..d83d3ee 100644 --- a/src/_mixins.scss +++ b/src/_mixins.scss @@ -158,6 +158,32 @@ } } +@mixin correct-file-upload { + :host ::ng-deep { + .p-fileupload { + .p-fileupload-buttonbar, + .p-fileupload-content { + background-color: var(--surface-100) !important; + } + .p-fileupload-content { + padding: 0.5rem; + .p-fileupload-row { + display: flex; + flex-wrap: wrap; + justify-content: space-between; + gap: 0; + > div { + width: unset; + &.p-fileupload-filename { + max-width: 25rem; + } + } + } + } + } + } +} + @mixin search-criteria-select-button-slim { :host ::ng-deep { .slim-selectbutton { diff --git a/src/app/theme/theme-import/theme-import.component.html b/src/app/theme/theme-import/theme-import.component.html index 4d99ad0..1233965 100644 --- a/src/app/theme/theme-import/theme-import.component.html +++ b/src/app/theme/theme-import/theme-import.component.html @@ -7,7 +7,7 @@ (onHide)="onImportThemeHide()" > -
- +
{{ 'THEME.NO_PROPERTIES' | translate }}
@@ -62,10 +61,12 @@ pButton type="button" icon="pi pi-times" - id="portal_import_button_close" - [label]="'ACTIONS.NAVIGATION.CLOSE' | translate" - [title]="'ACTIONS.NAVIGATION.CLOSE_WITHOUT_SAVE' | translate" + id="theme_import_button_close" (click)="onImportThemeHide()" + [label]="'ACTIONS.NAVIGATION.CLOSE' | translate" + [pTooltip]="'ACTIONS.NAVIGATION.CLOSE_WITHOUT_SAVE' | translate" + tooltipPosition="top" + tooltipEvent="focus" >
diff --git a/src/app/theme/theme-import/theme-import.component.scss b/src/app/theme/theme-import/theme-import.component.scss index 94f2e60..4eeb34a 100644 --- a/src/app/theme/theme-import/theme-import.component.scss +++ b/src/app/theme/theme-import/theme-import.component.scss @@ -1,23 +1,3 @@ -:host ::ng-deep { - .p-fileupload { - .p-fileupload-buttonbar, - .p-fileupload-content { - background-color: var(--surface-100) !important; - } - .p-fileupload-content { - padding: 0.5rem; - .p-fileupload-row { - display: flex; - flex-wrap: wrap; - justify-content: space-between; - gap: 0; - > div { - width: unset; - &:first-child { - display: none; - } - } - } - } - } -} +@import 'src/_mixins.scss'; + +@include correct-file-upload;