Skip to content

Commit

Permalink
fix: layout color box in import
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryT-CG committed Sep 27, 2024
1 parent c4f2edc commit 7daaf06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
}
// height of a normal text input control
.h-inputtext {
height: 2.786rem;
height: 2.786rem !important;
}
}
12 changes: 6 additions & 6 deletions src/app/theme/theme-import/theme-import.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
[cancelLabel]="'ACTIONS.CANCEL' | translate"
[chooseLabel]="'ACTIONS.CHOOSE' | translate"
></p-fileUpload>
<div *ngIf="themeSnapshot" class="flex flex-wrap justify-content-start align-items-center gap-2 mt-4">
<span class="p-float-label" controlErrorAnchor>
<div *ngIf="themeSnapshot" class="flex flex-wrap justify-content-start align-items-center gap-3 mt-4">
<span class="p-float-label w-full md:w-15rem" controlErrorAnchor>
<input
pInputText
type="text"
id="th_import_theme_name"
class="w-full pt-3 pb-2"
class="w-full pt-3 pb-2 text-responsive"
[(ngModel)]="themeName"
(ngModelChange)="checkThemeExistence()"
(keyup)="checkThemeExistence()"
Expand All @@ -41,12 +41,12 @@
/>
<label class="ocx-required-label" for="th_import_theme_name">{{ 'THEME.THEME_NAME' | translate }}</label>
</span>
<span class="p-float-label" controlErrorAnchor>
<span class="p-float-label w-full md:w-15rem" controlErrorAnchor>
<input
pInputText
type="text"
id="th_import_theme_display_name"
class="w-full pt-3 pb-2"
class="w-full pt-3 pb-2 text-responsive"
[(ngModel)]="displayName"
(ngModelChange)="checkThemeExistence()"
(keyup)="checkThemeExistence()"
Expand All @@ -58,7 +58,7 @@
{{ 'THEME.DISPLAY_NAME' | translate }}
</label>
</span>
<app-theme-color-box *ngIf="properties" [properties]="properties" />
<app-theme-color-box *ngIf="properties" [properties]="properties" styleClass="h-inputtext w-15rem" />
<div *ngIf="!properties">{{ 'THEME.NO_PROPERTIES' | translate }}</div>
</div>
<p-message
Expand Down
1 change: 1 addition & 0 deletions src/app/theme/theme-import/theme-import.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

@include correct-file-upload;
@include dialog-footer-buttons;
@include displaying-text-responsive;

0 comments on commit 7daaf06

Please sign in to comment.