From be9772c90e7b30095987ae2cc998f75d5cba43db Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sat, 18 Nov 2023 16:03:23 -0800 Subject: [PATCH] Minor changes --- cista/preview.py | 3 ++- frontend/src/assets/main.css | 4 ---- frontend/src/components/GalleryFigure.vue | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cista/preview.py b/cista/preview.py index 524fd81..395b493 100644 --- a/cista/preview.py +++ b/cista/preview.py @@ -33,7 +33,8 @@ async def preview(req, path): headers = { "etag": etag, "last-modified": format_date_time(stat.st_mtime), - "cache-control": "max-age=604800, immutable", + "cache-control": "max-age=604800, immutable" + + ("" if config.config.public else ", private"), "content-type": "image/webp", "content-disposition": f"inline; filename*=UTF-8''{urllib.parse.quote(savename.as_posix())}", } diff --git a/frontend/src/assets/main.css b/frontend/src/assets/main.css index 0da5cb3..9a764f1 100644 --- a/frontend/src/assets/main.css +++ b/frontend/src/assets/main.css @@ -141,10 +141,6 @@ html { font-size: var(--root-font-size); overflow: hidden; } -/* Hide scrollbar for all browsers */ -main::-webkit-scrollbar { - display: none; -} main { -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */ diff --git a/frontend/src/components/GalleryFigure.vue b/frontend/src/components/GalleryFigure.vue index 1446581..045dd61 100644 --- a/frontend/src/components/GalleryFigure.vue +++ b/frontend/src/components/GalleryFigure.vue @@ -10,7 +10,7 @@ >
- +