From 07c9589a03176d8af7cee69789bb4ee4a83f0883 Mon Sep 17 00:00:00 2001 From: wisecolt Date: Fri, 2 Jan 2026 21:32:00 +0300 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20mobil=20yerle=C5=9Fimi=20iyile?= =?UTF-8?q?=C5=9Ftir=20ve=20ta=C5=9Fmay=C4=B1=20d=C3=BCzelt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - AppLayout başlığının mobil uyumluluğunu yeniden düzenle - İkon tabanlı butonlar kullanarak mobil alan tasarrufu sağla - TimerPage'de taşan metinler için truncate sınıfları ekle - Torrent bilgileri için daha iyi duyarlı düzen yapısı oluştur --- apps/web/src/components/layout/AppLayout.tsx | 81 ++++++++++---------- apps/web/src/pages/TimerPage.tsx | 18 +++-- 2 files changed, 50 insertions(+), 49 deletions(-) diff --git a/apps/web/src/components/layout/AppLayout.tsx b/apps/web/src/components/layout/AppLayout.tsx index acf08e6..fde225f 100644 --- a/apps/web/src/components/layout/AppLayout.tsx +++ b/apps/web/src/components/layout/AppLayout.tsx @@ -8,7 +8,7 @@ import { useAppStore } from "../../store/useAppStore"; import { connectSocket } from "../../socket/socket"; import { api } from "../../api/client"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { faMoon, faSun } from "@fortawesome/free-solid-svg-icons"; +import { faMoon, faSun, faRightFromBracket } from "@fortawesome/free-solid-svg-icons"; import { AlertToastStack } from "../ui/AlertToastStack"; export const AppLayout = ({ children }: { children: React.ReactNode }) => { @@ -65,12 +65,20 @@ export const AppLayout = ({ children }: { children: React.ReactNode }) => { return (
-
+
q-buffer
qBittorrent {qbit.version ?? "unknown"}
+
+ + {qbit.ok ? "Qbit OK" : "Qbit Down"} + + + {connected ? "Live" : "Offline"} + +
-
-
- -
- - {qbit.ok ? "Qbit OK" : "Qbit Down"} - - - {connected ? "Live" : "Offline"} - +
+ -
diff --git a/apps/web/src/pages/TimerPage.tsx b/apps/web/src/pages/TimerPage.tsx index 8626682..fae2e9c 100644 --- a/apps/web/src/pages/TimerPage.tsx +++ b/apps/web/src/pages/TimerPage.tsx @@ -292,34 +292,36 @@ export const TimerPage = () => { className="rounded-lg border border-slate-200 bg-white px-3 py-2" >
-
+
{torrent.name}
-
+
{formatBytes(torrent.size)} • {trackerLabel(torrent.tracker)}
-
+
{formatCountdown(remainingSeconds)}
Kural: {formatDuration(rule.seedLimitSeconds)}
-
- Hash: {torrent.hash.slice(0, 12)}... - +
+
+ Hash: {torrent.hash.slice(0, 12)}... +
+
Etiket:{" "} {(torrent.tags || torrent.category || "-") .split(",") .map((tag) => tag.trim()) .filter(Boolean) .join(", ") || "-"} - +
))}