Skip to content

Commit

Permalink
fix(multiple): fix label styles in inline-group
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Apr 16, 2024
1 parent 83d6c67 commit 4ef015f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
1 change: 0 additions & 1 deletion projects/gui/field-group/field-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
display: inline-flex;
flex: 1;
flex-wrap: wrap;
align-items: center;

>.mat-mdc-form-field {
flex: 1;
Expand Down
4 changes: 4 additions & 0 deletions projects/gui/file-uploader/file-uploader.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@
<input #fileInput type="file" [accept]="accept" [name]="name"
[disabled]="disabled" (change)="onFileChange($event)">
</figure>

<mat-hint *ngIf="config.parentType==='inline'">
<gui-field-label [config]="config"></gui-field-label>
</mat-hint>
6 changes: 6 additions & 0 deletions projects/gui/inline-group/inline-group.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
.gui-inline-group {
display: flex;
padding: 4px 8px;

mat-hint {
width: 100%;
line-height: var(--mat-form-field-subscript-text-line-height);
-webkit-font-smoothing: antialiased;
}
}

.gui-inline-group-content {
Expand Down
6 changes: 0 additions & 6 deletions projects/gui/slider/slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,4 @@
appearance: none;
}
}

.mat-mdc-form-field-hint {
width: 100%;
padding: 0 8px;
line-height: var(--mat-form-field-subscript-text-line-height);
}
}
2 changes: 1 addition & 1 deletion projects/gui/switch/switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
}

.mat-mdc-slide-toggle {
line-height: 1;
line-height: 24px;
}
}

0 comments on commit 4ef015f

Please sign in to comment.