Skip to content

Commit 88039c6

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

1 file changed

Lines changed: 59 additions & 27 deletions

File tree

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

Lines changed: 59 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@
2828
-webkit-tap-highlight-color: transparent;
2929

3030
.adev-reference-list-type-filter-label {
31-
margin-block: 2.5rem 1rem;
31+
margin-block: 1rem;
3232
}
3333

3434
.adev-reference-list-type-filter {
35+
box-sizing: border-box;
36+
37+
* {
38+
box-sizing: border-box;
39+
}
3540
display: grid;
3641
grid-template-columns: repeat(6, 1fr);
3742
margin-block: 0;
@@ -45,6 +50,7 @@
4550
}
4651
@container api-ref-page (max-width: 600px) {
4752
grid-template-columns: repeat(4, 1fr);
53+
max-width: 500px;
4854
}
4955
@container api-ref-page (max-width: 500px) {
5056
grid-template-columns: repeat(3, 1fr);
@@ -88,16 +94,67 @@
8894

8995
.adev-reference-list-query-filter {
9096
display: flex;
91-
gap: 1.5rem;
97+
gap: 1rem;
9298
flex-wrap: wrap;
99+
align-items: center;
93100
justify-content: space-between;
101+
102+
docs-text-field,
103+
docs-select {
104+
width: 100%;
105+
max-width: 350px;
106+
}
107+
108+
@container api-ref-page (max-width: 600px) {
109+
flex-direction: column;
110+
align-items: stretch;
111+
112+
docs-text-field,
113+
docs-select {
114+
width: 100%;
115+
max-width: 500px;
116+
}
117+
}
118+
}
119+
120+
.adev-reference-list-status {
121+
display: flex;
94122
align-items: center;
123+
margin-top: 1rem;
124+
125+
::ng-deep .mat-mdc-chip-listbox {
126+
127+
@container api-ref-page (max-width: 600px) {
128+
width: 100%;
129+
max-width: 500px;
130+
131+
.mdc-evolution-chip-set__chips {
132+
display: grid !important;
133+
grid-template-columns: repeat(2, 1fr);
134+
gap: 8px;
135+
margin-left: 0;
136+
}
137+
138+
.mat-mdc-chip-option {
139+
min-width: 0;
140+
width: 100%;
141+
margin: 0;
142+
}
143+
}
144+
145+
@container api-ref-page (max-width: 350px) {
146+
.mdc-evolution-chip-set__chips {
147+
grid-template-columns: 1fr;
148+
}
149+
}
150+
}
95151
}
96152
}
97153

98154
.adev-reference-list-empty {
99155
text-align: center;
100156
margin-block-start: 2rem;
157+
flex-basis: 100%;
101158

102159
p {
103160
font-size: 1rem;
@@ -108,28 +165,3 @@
108165
width: 100%;
109166
}
110167
}
111-
112-
.adev-reference-list-empty {
113-
flex-basis: 100%;
114-
p {
115-
font-size: 1rem;
116-
}
117-
}
118-
119-
.docs-api-item-label-full {
120-
white-space: nowrap;
121-
}
122-
123-
.map-chip-option {
124-
min-width: 190px;
125-
}
126-
127-
.adev-reference-list-status {
128-
display: flex;
129-
align-items: center;
130-
margin-top: 12px;
131-
132-
label {
133-
margin-right: 8px;
134-
}
135-
}

0 commit comments

Comments
 (0)