Minor changes
This commit is contained in:
parent
bb2448dc24
commit
be9772c90e
|
@ -33,7 +33,8 @@ async def preview(req, path):
|
||||||
headers = {
|
headers = {
|
||||||
"etag": etag,
|
"etag": etag,
|
||||||
"last-modified": format_date_time(stat.st_mtime),
|
"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-type": "image/webp",
|
||||||
"content-disposition": f"inline; filename*=UTF-8''{urllib.parse.quote(savename.as_posix())}",
|
"content-disposition": f"inline; filename*=UTF-8''{urllib.parse.quote(savename.as_posix())}",
|
||||||
}
|
}
|
||||||
|
|
|
@ -141,10 +141,6 @@ html {
|
||||||
font-size: var(--root-font-size);
|
font-size: var(--root-font-size);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
/* Hide scrollbar for all browsers */
|
|
||||||
main::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
main {
|
main {
|
||||||
-ms-overflow-style: none; /* IE and Edge */
|
-ms-overflow-style: none; /* IE and Edge */
|
||||||
scrollbar-width: none; /* Firefox */
|
scrollbar-width: none; /* Firefox */
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
>
|
>
|
||||||
<figure>
|
<figure>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
<MediaPreview ref=m :doc="doc" tabindex=-1 quality="?sz=512" />
|
<MediaPreview ref=m :doc="doc" tabindex=-1 quality="sz=512" />
|
||||||
<caption>
|
<caption>
|
||||||
<label>
|
<label>
|
||||||
<SelectBox :doc=doc />
|
<SelectBox :doc=doc />
|
||||||
|
|
Loading…
Reference in New Issue
Block a user