Closed fabiannagel closed 2 months ago
I thought this might be a good issue to flex my frontend skills (full disclosure, it's been awhile); I've done some poking at it, but I haven't been able to get something working that doesn't have drawbacks. I've written up a little bit about each below, in case someone else wants to pick this up (or if someone has ideas to push in the right direction :slightly_smiling_face: ).
<main>
HeightChanging <main>
on the album page from h-screen
to h-full
https://github.com/immich-app/immich/blob/5156d761940df1ae2a7b99a4dba190e03f8d3cb7/web/src/routes/(user)/albums/%5BalbumId%5D/%2Bpage.svelte#L420 results in being able to scroll the page from either side. However,
The timeline scrollbar disappears from the DOM, to be replaced by the default scrollbar. I tried a few different ways to make it (the default scrollbar) go away, but none worked for me in Firefox or Chromium
The header becomes outlined in a lighter color when content is underneath it.
Pulling the sm:px-12 md:px-24 lg:px-40
from <main>
https://github.com/immich-app/immich/blob/5156d761940df1ae2a7b99a4dba190e03f8d3cb7/web/src/routes/(user)/albums/%5BalbumId%5D/%2Bpage.svelte#L420 into AssetGrid https://github.com/immich-app/immich/blob/5156d761940df1ae2a7b99a4dba190e03f8d3cb7/web/src/lib/components/photos-page/asset-grid.svelte#L328 does make some of the empty space on the album page scrollable. This isn’t free from drawbacks either though:
This suffers from the same margin problem as the second attempt, and doesn’t really make a difference on mobile – at least not on an iPhone XR. It does make the experience a bit better on a desktop though, and personally I like more screen real estate being used for content versus empty space.
Again on an iPhone XR, the album view needed to be zoomed out. When I did that, I found myself wondering if the issue is that the Immich scrollbar wasn’t draggable. Maybe changing the on:mouse*
events there to on:pointer*
would help? I ran into issues testing that though, so I can’t say 100%.
since this never got fixed, I don't know if it slipped past the devs but I made a quick workaround using CSS.
just drop this into the custom CSS in the theme settings, clear your cache and it should fix this issue.
there's other stuff in the file too, you can remove things you don't want, the fix for this exact problem itself is just a 4 line CSS.
https://gist.github.com/ChokunPlayZ/eec78effcc0d02b98be9e2fd7d70e925
I believe this is fixed as we don't ever use the asset grid with a margin, like we used to have in the album page.
The bug
When viewing an album, one can only scroll with the cursor inside the main container (
<section >id="asset-grid">
). The whitespace left and right of the actual photo stream is a dead zone.While improvable, such behavior is IMHO not all too bad for large screens (desktop). On mobile, however, it's easy to accidentally trigger a site reload while attempting to scroll on the right side of the screen, which is where my thumb usually is. This is especially annoying when a minimized background upload is canceled by the accidental refresh.
In general, this could be improved by making the entire page's width scrollable.
The OS that Immich Server is running on
Debian 10
Version of Immich Server
1.75.0
Version of Immich Mobile App
1.74.0 build.97
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
No response