Skip to content

Commit 55fcf16

Browse files
authored
Update certStyles.css
1 parent 2a53f0a commit 55fcf16

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

web/certStyles.css

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,22 @@
44
========================================= */
55

66
/* -------------------------
7-
Panel layout tweak
8-
(allow inner scrolling sections)
7+
Panel fixes (CRITICAL)
98
------------------------- */
109

1110
.panel {
12-
overflow: hidden; /* prevent horizontal scroll */
11+
overflow: hidden;
1312
display: flex;
1413
flex-direction: column;
14+
align-items: stretch; /* FORCE full width */
1515
}
1616

1717
/* -------------------------
1818
Recommended box
1919
------------------------- */
2020

2121
.recommended-box {
22+
width: 100%;
2223
margin-bottom: 14px;
2324
padding: 14px 16px;
2425
border-radius: 12px;
@@ -38,26 +39,23 @@
3839
------------------------- */
3940

4041
.cert-list {
41-
flex: 1; /* fill remaining panel space */
42-
overflow-y: auto; /* vertical scroll ONLY */
42+
width: 100%; /* KEY FIX */
43+
min-width: 0; /* flex/grid overflow fix */
44+
flex: 1;
45+
46+
overflow-y: auto;
4347
overflow-x: hidden;
4448

4549
display: grid;
50+
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
4651
gap: 16px;
47-
padding-right: 6px; /* room for scrollbar */
48-
}
4952

50-
/* Responsive grid: multiple certs across */
51-
@media (min-width: 600px) {
52-
.cert-list {
53-
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
54-
}
53+
padding-right: 6px;
5554
}
5655

57-
@media (max-width: 599px) {
58-
.cert-list {
59-
grid-template-columns: 1fr;
60-
}
56+
/* Ensure cards don't shrink grid */
57+
.cert-card {
58+
min-width: 0;
6159
}
6260

6361
/* -------------------------
@@ -79,10 +77,11 @@
7977
}
8078

8179
/* -------------------------
82-
Updates dropdown (collapsible)
80+
Updates dropdown (DROP-UP)
8381
------------------------- */
8482

8583
.updates-box {
84+
width: 100%; /* KEY FIX */
8685
position: sticky;
8786
bottom: 16px;
8887
margin-top: 16px;
@@ -97,7 +96,9 @@
9796
flex-shrink: 0;
9897
}
9998

99+
/* Header row */
100100
.updates-header {
101+
width: 100%;
101102
display: flex;
102103
align-items: center;
103104
justify-content: space-between;
@@ -109,6 +110,7 @@
109110
font-size: 15px;
110111
}
111112

113+
/* Caret */
112114
.updates-toggle {
113115
border: none;
114116
background: transparent;
@@ -117,12 +119,17 @@
117119
transition: transform 0.18s ease;
118120
}
119121

120-
/* START CLOSED */
122+
/* -------------------------
123+
Updates content (START CLOSED)
124+
------------------------- */
125+
121126
.updates-inner {
127+
width: 100%; /* KEY FIX */
128+
min-width: 0;
129+
122130
position: absolute;
123131
bottom: 100%;
124132
left: 0;
125-
width: 100%;
126133

127134
max-height: 0;
128135
overflow: hidden;

0 commit comments

Comments
 (0)