Skip to content

Commit 943128c

Browse files
committed
refactor: Mobile layout api reference
Fix mobile layout shift in API reference fix angular#67650
1 parent ada150c commit 943128c

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

adev/src/app/features/references/api-reference-list/api-reference-list.component.scss

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,30 @@
128128
display: flex;
129129
align-items: center;
130130
margin-top: 12px;
131+
}
132+
133+
@container api-ref-page (max-width: 580px) {
134+
.adev-reference-list-status ::ng-deep .mat-mdc-chip-listbox {
135+
width: 100%;
136+
137+
.mdc-evolution-chip-set__chips {
138+
display: grid !important;
139+
grid-template-columns: repeat(2, 1fr);
140+
gap: 8px;
141+
}
142+
143+
.mat-mdc-chip-option {
144+
min-width: 0;
145+
width: 100%;
146+
margin: 0;
147+
}
148+
}
149+
}
131150

132-
label {
133-
margin-right: 8px;
151+
@container api-ref-page (max-width: 350px) {
152+
.adev-reference-list-status ::ng-deep .mat-mdc-chip-listbox {
153+
.mdc-evolution-chip-set__chips {
154+
grid-template-columns: 1fr;
155+
}
134156
}
135157
}

0 commit comments

Comments
 (0)