Skip to content

Commit 079f9c3

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

File tree

2 files changed

+32
-4
lines changed

2 files changed

+32
-4
lines changed

adev/shared-docs/styles/_media-queries.scss

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,31 @@ $screen-xxl: 1800px;
8888
@content;
8989
}
9090
}
91+
92+
@mixin filter-api-smartphone-tablet-layout {
93+
@container api-ref-page (max-width: 580px) {
94+
.adev-reference-list-status ::ng-deep .mat-mdc-chip-listbox {
95+
width: 100%;
96+
97+
.mdc-evolution-chip-set__chips {
98+
display: grid !important;
99+
grid-template-columns: repeat(2, 1fr);
100+
gap: 8px;
101+
}
102+
103+
.mat-mdc-chip-option {
104+
min-width: 0;
105+
width: 100%;
106+
margin: 0;
107+
}
108+
}
109+
}
110+
111+
@container api-ref-page (max-width: 350px) {
112+
.adev-reference-list-status ::ng-deep .mat-mdc-chip-listbox {
113+
.mdc-evolution-chip-set__chips {
114+
grid-template-columns: 1fr;
115+
}
116+
}
117+
}
118+
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use '@angular/docs/styles/media-queries' as mq;
2+
13
:host {
24
padding: var(--layout-padding);
35
display: block;
@@ -128,8 +130,6 @@
128130
display: flex;
129131
align-items: center;
130132
margin-top: 12px;
131-
132-
label {
133-
margin-right: 8px;
134-
}
135133
}
134+
135+
@include mq.filter-api-smartphone-tablet-layout;

0 commit comments

Comments
 (0)