style(ui): refine file list styling and remove transform animations

- Reduce font sizes for names and folders for better visual hierarchy
- Remove scale and translate transforms on media cards during hover/selection
- Adjust line heights and max heights to accommodate new font sizes
- Simplify card transitions to box-shadow only for smoother interactions
This commit is contained in:
2025-12-14 23:49:55 +03:00
parent 12763f15d9
commit 177c7eb717

View File

@@ -3257,13 +3257,13 @@
} }
.name { .name {
font-weight: 600; font-weight: 600;
font-size: 14px; font-size: 13px;
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
line-height: 1.2; line-height: 1.3;
max-height: calc(1.2em * 2); max-height: calc(1.3em * 2);
text-overflow: ellipsis; text-overflow: ellipsis;
word-break: break-word; word-break: break-word;
} }
@@ -3541,9 +3541,7 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
isolation: isolate; isolation: isolate;
transition: transition: box-shadow 0.18s ease;
transform 0.18s ease,
box-shadow 0.18s ease;
cursor: pointer; cursor: pointer;
} }
.media-card::after { .media-card::after {
@@ -3559,7 +3557,7 @@
opacity: 0.22; opacity: 0.22;
} }
.media-card.is-selected { .media-card.is-selected {
transform: translateY(-6px) scale(0.965); transform: none;
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
} }
.media-card.is-selected::after { .media-card.is-selected::after {
@@ -3583,10 +3581,10 @@
flex-shrink: 0; flex-shrink: 0;
} }
.media-card:hover { .media-card:hover {
transform: translateY(-4px) scale(0.98); transform: none;
} }
.media-card.is-selected:hover { .media-card.is-selected:hover {
transform: translateY(-6px) scale(0.965); transform: none;
} }
.selection-toggle { .selection-toggle {
position: absolute; position: absolute;
@@ -3841,7 +3839,7 @@
} }
.folder-name { .folder-name {
font-weight: 600; font-weight: 600;
font-size: 15px; font-size: 14px;
color: #2d2d2d; color: #2d2d2d;
line-height: 1.25; line-height: 1.25;
word-break: break-word; word-break: break-word;