Skip to content

Commit 83d6bb9

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

1 file changed

Lines changed: 65 additions & 27 deletions

File tree

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

Lines changed: 65 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
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,73 @@
8894

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

98160
.adev-reference-list-empty {
99161
text-align: center;
100162
margin-block-start: 2rem;
163+
flex-basis: 100%;
101164

102165
p {
103166
font-size: 1rem;
@@ -108,28 +171,3 @@
108171
width: 100%;
109172
}
110173
}
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)