Skip to content

Commit 610db72

Browse files
committed
[Site] Improve IconModal display on mobile
1 parent 21d9557 commit 610db72

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

ux.symfony.com/assets/styles/components/_IconModal.scss

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
min-height: 1rem;
1616
max-width: 100vw;
1717
max-height: 100vh;
18-
overflow: clip;
18+
overflow: auto;
1919
padding: 1rem 1.5rem;
2020
background: var(--bs-body-bg);
2121
color: var(--bs-body-color);
@@ -59,7 +59,6 @@
5959

6060
.IconModal__body {
6161
display: grid;
62-
grid-template-columns: 300px 1fr;
6362
gap: 1.5rem;
6463
}
6564

@@ -238,3 +237,21 @@
238237
.IconModal__main h3:first-child {
239238
padding-top: 0;
240239
}
240+
241+
.IconModal__main .TabBody {
242+
padding-block-end: 0;
243+
}
244+
245+
@media screen and (max-width: 768px) {
246+
.IconModal {
247+
padding: .5rem;
248+
margin: .5rem;
249+
width: auto;
250+
height: auto;
251+
}
252+
}
253+
@media screen and (min-width: 768px) {
254+
.IconModal__body {
255+
grid-template-columns: 300px 1fr;
256+
}
257+
}

0 commit comments

Comments
 (0)