Skip to content

Commit 725062c

Browse files
fix: restore form field appearance and update stale MDC CSS class selectors
Agent-Logs-Url: https://github.com/EhTagTranslation/Editor/sessions/4503357b-b760-43a1-93f6-03acc3141ec1 Co-authored-by: OpportunityLiu <13471233+OpportunityLiu@users.noreply.github.com>
1 parent 64127e7 commit 725062c

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

src/browser/app/app.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { MatChipsModule } from '@angular/material/chips';
1313
import { MatMenuModule } from '@angular/material/menu';
1414
import { MatTableModule } from '@angular/material/table';
1515
import { MatIconModule } from '@angular/material/icon';
16-
import { MatFormFieldModule } from '@angular/material/form-field';
16+
import { MatFormFieldModule, MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
1717
import { MatInputModule } from '@angular/material/input';
1818
import { MatToolbarModule } from '@angular/material/toolbar';
1919
import { MatTooltipModule } from '@angular/material/tooltip';
@@ -82,6 +82,10 @@ import { environment } from '../environments/environment';
8282
providers: [
8383
ehHttpInterceptorProvider,
8484
TitleService,
85+
{
86+
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
87+
useValue: { appearance: 'outline', subscriptSizing: 'dynamic' },
88+
},
8589
{
8690
provide: MatPaginatorIntl,
8791
useFactory: () => {

src/browser/app/editor/editor.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ mat-card-subtitle {
122122
.ns-option {
123123
user-select: none;
124124

125-
&.mat-option {
125+
&.mat-mdc-option {
126126
line-height: 1.5em !important;
127127
}
128128

src/browser/app/list/list.component.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ header {
5656
margin-top: 2px;
5757
}
5858

59-
> mat-chip-list {
59+
> mat-chip-set {
6060
margin: 0 8px;
6161
}
6262

@@ -95,8 +95,8 @@ section {
9595
}
9696
}
9797

98-
.mat-header-cell:not(:last-child),
99-
.mat-cell:not(:last-child) {
98+
.mat-mdc-header-cell:not(:last-child),
99+
.mat-mdc-cell:not(:last-child) {
100100
padding-right: 8px;
101101
}
102102

0 commit comments

Comments
 (0)