feat(web): allow ctrl-click / cmd-click on photos ()

* feat(web): allow ctrl-click / cmd-click on photos

* fix: photo opening when deselected bug

* fix: consistent naming

* remove redundant code

* fix: disabled picture is clickable in "add to album" grid

* remove unnecessary code

* cleanup

* fix file permissions

* fix: album selection bug

* fix: stack slideshow bug & search gallery viewer bug

* cleanup

* fix dark mode stack slideshow bug

* cleanup

---------

Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
George Shao 2024-06-08 16:33:23 -04:00 committed by GitHub
parent d8d64ecc45
commit 4d862525bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 28 additions and 14 deletions
web/src/lib/utils

View file

@ -31,7 +31,7 @@ function currentUrlWithoutAsset() {
: $page.url.pathname.replace(/(\/photos.*)$/, '') + $page.url.search;
}
function currentUrlReplaceAssetId(assetId: string) {
export function currentUrlReplaceAssetId(assetId: string) {
const $page = get(page);
// this contains special casing for the /photos/:assetId photos route, which hangs directly
// off / instead of a subpath, unlike every other asset-containing route.