Skip to content

Commit e7745be

Browse files
authored
Update certStyles.css
1 parent 7a7b8a1 commit e7745be

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

web/certStyles.css

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,27 +60,34 @@ body main .panel { min-width: 0; }
6060
/* -------------------------
6161
Cert list grid (RESPONSIVE)
6262
------------------------- */
63-
/* Grid is the primary scrollable area inside the panel */
63+
/* responsive cert grid — tighter rows on desktop, comfy on mobile */
6464
.cert-list {
6565
display: grid;
6666
width: 100%;
67-
/* auto-fit/auto-fill combined with minmax ensures responsive multi-column */
6867
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
69-
gap: 12px;
68+
/* gap: <row> <column> -> row gap smaller on desktop, column gap comfortable */
69+
gap: 10px 14px;
7070
margin-top: 6px;
7171

7272
/* allow grid to grow and scroll vertically inside the panel */
7373
flex: 1 1 auto;
74-
min-height: 0; /* critical for children scrolling inside flex container */
74+
min-height: 0;
7575
overflow-y: auto;
7676
overflow-x: hidden;
77-
padding-right: 6px; /* room for scrollbar */
77+
padding-right: 6px;
7878
box-sizing: border-box;
7979
}
8080

81-
/* Small tweak for very narrow screens */
81+
/* extra-tight rows for very large screens */
82+
@media (min-width: 1400px) {
83+
.cert-list {
84+
gap: 8px 16px; /* slightly tighter vertical spacing, more horizontal breathing room */
85+
}
86+
}
87+
88+
/* keep a comfortable single-column layout on tiny phones */
8289
@media (max-width: 360px) {
83-
.cert-list { grid-template-columns: 1fr; gap:10px; }
90+
.cert-list { grid-template-columns: 1fr; gap: 10px; }
8491
}
8592

8693
/* -------------------------

0 commit comments

Comments
 (0)