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 @@ >
- +