Fix browser grid card sizing

- Reduce regular grid icon/thumbnail to 90px fixed
- Cap compact grid columns at 100px max width
- Compact thumbnails fill card width with aspect-ratio
- Reduce grid gap and column min-width

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-25 01:49:42 +03:00
parent caf24db494
commit 80d4dbccf3

View File

@@ -1858,16 +1858,16 @@
/* Browser Grid */ /* Browser Grid */
.browser-grid { .browser-grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 1rem; gap: 0.75rem;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
min-height: 200px; min-height: 200px;
align-items: start; align-items: stretch;
} }
/* Compact Grid */ /* Compact Grid */
.browser-grid.browser-grid-compact { .browser-grid.browser-grid-compact {
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); grid-template-columns: repeat(auto-fill, minmax(80px, 100px));
gap: 0.5rem; gap: 0.5rem;
} }
@@ -2056,8 +2056,8 @@
/* Thumbnail Display */ /* Thumbnail Display */
.browser-thumbnail { .browser-thumbnail {
width: 100%; width: 90px;
aspect-ratio: 1; height: 90px;
object-fit: cover; object-fit: cover;
border-radius: 6px; border-radius: 6px;
background: var(--bg-primary); background: var(--bg-primary);
@@ -2115,8 +2115,8 @@
/* File/Folder Icons */ /* File/Folder Icons */
.browser-icon { .browser-icon {
width: 100%; width: 90px;
aspect-ratio: 1; height: 90px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -2128,6 +2128,7 @@
.browser-item-info { .browser-item-info {
width: 100%; width: 100%;
text-align: center; text-align: center;
margin-top: auto;
} }
.browser-item-name { .browser-item-name {
@@ -2175,8 +2176,8 @@
/* Thumbnail Wrapper & Play Overlay */ /* Thumbnail Wrapper & Play Overlay */
.browser-thumb-wrapper { .browser-thumb-wrapper {
position: relative; position: relative;
width: 120px; width: 90px;
height: 120px; height: 90px;
flex-shrink: 0; flex-shrink: 0;
} }
@@ -2212,8 +2213,8 @@
/* Compact grid overrides */ /* Compact grid overrides */
.browser-grid-compact .browser-thumb-wrapper { .browser-grid-compact .browser-thumb-wrapper {
width: 64px; width: 100%;
height: 64px; aspect-ratio: 1;
} }
.browser-grid-compact .browser-play-overlay svg { .browser-grid-compact .browser-play-overlay svg {