From fab4b9c6b6fe67ca10812637fe01c27a95823915 Mon Sep 17 00:00:00 2001 From: Martin Dimitrov Date: Mon, 16 Nov 2026 15:59:05 +0000 Subject: [PATCH] style(photos): Redesign Photos with a modern gallery and viewer --- src/apps/Photos/Photos.css | 69 ++++++++++++++++++++++++++++++++++++++ src/apps/Photos/Photos.tsx | 10 +++++- 2 files changed, 78 insertions(+), 1 deletion(-) diff --git a/src/apps/Photos/Photos.css b/src/apps/Photos/Photos.css index 4f24fc5..cca77dd 100644 --- a/src/apps/Photos/Photos.css +++ b/src/apps/Photos/Photos.css @@ -66,3 +66,72 @@ width: 100vw; height: 100dvh; } + +.photos.app-design { + overflow: auto; +} +.photos .app-heading { + padding: 20px 24px 12px; +} +.photos__toolbar { + padding: 12px 20px; + background: var(--color-surface); + border-bottom: 1px solid var(--color-border); + gap: 8px; +} +.photos__gallery { + gap: 18px; + padding: 24px; + grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); + flex: 1; + align-content: start; +} +.photos__gallery button { + padding: 0; + border-radius: 16px; + overflow: hidden; + text-align: left; + align-items: stretch; + gap: 0; + box-shadow: 0 4px 12px #0001; +} +.photos__gallery img { + height: 150px; + background: var(--color-surface-2); + object-fit: cover; +} +.photos__gallery span { + padding: 13px; + font-size: 12px; + font-weight: 600; +} +.photos__gallery > p { + grid-column: 1 / -1; + text-align: center; + padding: 40px 20px; + color: var(--color-text-dim); + line-height: 1.8; + border: 1px dashed var(--color-border); + border-radius: 18px; +} +.photos__viewer { + background: var(--color-bg); + padding: 20px; + min-height: 160px; +} +.photos__caption { + padding: 12px 20px; + font-size: 12px; + font-weight: 600; + background: var(--app-tint); +} +@container (max-width: 400px) { + .photos__gallery { + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 10px; + padding: 12px; + } + .photos__gallery img { + height: 110px; + } +} diff --git a/src/apps/Photos/Photos.tsx b/src/apps/Photos/Photos.tsx index 60f627a..f073092 100644 --- a/src/apps/Photos/Photos.tsx +++ b/src/apps/Photos/Photos.tsx @@ -1,3 +1,5 @@ +import { AppHeading } from "../shared/AppHeading"; +import { Images } from "lucide-react"; import { useEffect, useMemo, useRef, useState } from "react"; import type { AppProps } from "../../types"; import { useFileSystemStore } from "../../stores/useFileSystemStore"; @@ -80,7 +82,13 @@ export function Photos({ launchProps }: AppProps) { } return ( -
+
+