From 147c6e3600b6893c4ed6d1ee6f905a91e5bd1242 Mon Sep 17 00:00:00 2001 From: ayykamp <32194363+ayykamp@users.noreply.github.com> Date: Fri, 26 Jul 2024 23:06:08 +0200 Subject: [PATCH] chore(web): improve responsiveness in Album and Shared Album pages on small devices (#11055) * style: better responsiveness on album and shared album pages * revert right margin changes --------- Co-authored-by: Alex --- web/src/lib/components/album-page/album-title.svelte | 2 +- web/src/lib/components/album-page/album-viewer.svelte | 4 ++-- web/src/lib/components/photos-page/asset-grid.svelte | 4 +++- .../[[photos=photos]]/[[assetId=id]]/+page.svelte | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/web/src/lib/components/album-page/album-title.svelte b/web/src/lib/components/album-page/album-title.svelte index 44b3e3d1ea6..22c26aa10c5 100644 --- a/web/src/lib/components/album-page/album-title.svelte +++ b/web/src/lib/components/album-page/album-title.svelte @@ -33,7 +33,7 @@ e.currentTarget.blur() }} on:blur={handleUpdateName} - class="w-[99%] mb-2 border-b-2 border-transparent text-6xl text-immich-primary outline-none transition-all dark:text-immich-dark-primary {isOwned + class="w-[99%] mb-2 border-b-2 border-transparent text-2xl md:text-4xl lg:text-6xl text-immich-primary outline-none transition-all dark:text-immich-dark-primary {isOwned ? 'hover:border-gray-400' : 'hover:border-transparent'} bg-immich-bg focus:border-b-2 focus:border-immich-primary focus:outline-none dark:bg-immich-dark-bg dark:focus:border-immich-dark-primary dark:focus:bg-immich-dark-gray" type="text" diff --git a/web/src/lib/components/album-page/album-viewer.svelte b/web/src/lib/components/album-page/album-viewer.svelte index fe3a0a4f74c..7a88aa740b6 100644 --- a/web/src/lib/components/album-page/album-viewer.svelte +++ b/web/src/lib/components/album-page/album-viewer.svelte @@ -95,10 +95,10 @@
-
+

{album.albumName}

diff --git a/web/src/lib/components/photos-page/asset-grid.svelte b/web/src/lib/components/photos-page/asset-grid.svelte index 7f56192ce78..b129d7dc086 100644 --- a/web/src/lib/components/photos-page/asset-grid.svelte +++ b/web/src/lib/components/photos-page/asset-grid.svelte @@ -427,7 +427,9 @@
{#if viewMode !== ViewMode.SELECT_THUMBNAIL} -
+
{#if album.assetCount > 0}