From 849fad8a8af1be1239b0784bd41e914dbfb12227 Mon Sep 17 00:00:00 2001 From: madrays Date: Sat, 29 Mar 2025 22:31:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=A7=86=E5=9B=BE=E7=AD=9B=E9=80=89=E6=A0=8F=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E4=BC=98=E5=8C=96=E5=A4=B4=E9=83=A8?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E5=87=8F=E5=B0=91=E7=A9=BA=E9=97=B4=E5=8D=A0?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/resource.vue | 40 +++- src/views/torrent/TorrentCardListView.vue | 36 ++-- src/views/torrent/TorrentRowListView.vue | 218 +++++++++++----------- 3 files changed, 168 insertions(+), 126 deletions(-) diff --git a/src/pages/resource.vue b/src/pages/resource.vue index 6ed3a8c4..1d2c99db 100644 --- a/src/pages/resource.vue +++ b/src/pages/resource.vue @@ -514,17 +514,43 @@ onUnmounted(() => { @media (max-width: 600px) { .search-header { - flex-direction: column; - align-items: flex-start; + padding: 8px 12px; } - + + .search-title { + font-size: 0.95rem; + white-space: nowrap; + } + .search-info-container { - margin-bottom: 12px; - width: 100%; + flex: 1; + gap: 8px; + min-width: 0; + overflow: hidden; } - + + .search-tags { + overflow-x: auto; + flex-wrap: nowrap; + scrollbar-width: none; + margin-right: 8px; + } + + .search-tags::-webkit-scrollbar { + display: none; + } + .view-toggle-container { - align-self: flex-end; + flex-shrink: 0; + } + + .view-toggle-buttons { + padding: 2px; + } + + .view-toggle-btn { + width: 36px; + height: 32px; } } diff --git a/src/views/torrent/TorrentCardListView.vue b/src/views/torrent/TorrentCardListView.vue index 2a802443..81585abb 100644 --- a/src/views/torrent/TorrentCardListView.vue +++ b/src/views/torrent/TorrentCardListView.vue @@ -487,15 +487,15 @@ function loadMore({ done }: { done: any }) { -
+
-
-
-
+
+
+
@@ -727,21 +727,21 @@ function loadMore({ done }: { done: any }) { } .mobile-sort-select { - min-width: 130px; - max-width: 150px; - font-size: 0.9rem; + min-width: 110px; + max-width: 130px; + font-size: 0.8rem; } .filter-buttons-grid { display: grid; grid-template-columns: repeat(3, 1fr); - gap: 6px; + gap: 4px; } .filter-btn-mobile { height: auto; - min-height: 64px; - padding: 8px 0; + min-height: 48px; + padding: 4px 0; background-color: rgba(var(--v-theme-surface), 1); border-radius: 8px; display: flex; @@ -752,12 +752,20 @@ function loadMore({ done }: { done: any }) { } .filter-icon { - margin-bottom: 4px; - font-size: 22px; + margin-bottom: 2px; + font-size: 18px; } .filter-label { - font-size: 0.8rem; + font-size: 0.7rem; text-align: center; } + +.search-header-mobile { + position: sticky; + top: 0; + z-index: 10; + background-color: rgba(var(--v-theme-background), 0.95); + backdrop-filter: blur(10px); +} diff --git a/src/views/torrent/TorrentRowListView.vue b/src/views/torrent/TorrentRowListView.vue index 7625dfb7..7acf1b3d 100644 --- a/src/views/torrent/TorrentRowListView.vue +++ b/src/views/torrent/TorrentRowListView.vue @@ -379,98 +379,101 @@ function toggleFilterMenu(key: string) {