refactor(files): merge grid and list builder, use CSS only to switch between views

This commit is contained in:
Edouard Vanbelle
2026-04-03 17:58:14 +02:00
parent 3157d6ef64
commit a466a6473d
19 changed files with 640 additions and 743 deletions
+5 -5
View File
@@ -37,7 +37,7 @@
}
/* Adjustments for grid view */
.file-card.favorite-item {
.file-item.favorite-item {
border-left: 3px solid #ffc107;
[dir='rtl'] & {
@@ -101,13 +101,13 @@
/* ── Star badge on file/folder cards (normal view) ── */
/* Grid view: keep interactive star button behavior from style.css */
.file-card .favorite-star {
.file-item .favorite-star {
pointer-events: auto;
z-index: 12;
}
.file-card .favorite-star.active i,
.file-card .favorite-star.active svg {
.file-item .favorite-star.active i,
.file-item .favorite-star.active svg {
animation: favorite-pulse 0.3s ease;
}
@@ -123,4 +123,4 @@
margin-left: 0;
margin-right: 6px;
}
}
}