From f5e4ad0de67e616372025ee4e234fe7d31bcca3c Mon Sep 17 00:00:00 2001 From: j Date: Fri, 1 Dec 2023 20:43:02 +0100 Subject: [PATCH] better previews for documents --- app/item/models.py | 2 ++ app/static/css/site.scss | 1 + 2 files changed, 3 insertions(+) diff --git a/app/item/models.py b/app/item/models.py index 4ead4f8..17815e7 100644 --- a/app/item/models.py +++ b/app/item/models.py @@ -116,6 +116,8 @@ class Item(models.Model): if not key: key = meta.attrib.get('property') value = meta.attrib.get('content') + if key == "thumbnail": + value = value.replace('/512p', '/1024p') if key and value: if key in ('viewport', ): continue diff --git a/app/static/css/site.scss b/app/static/css/site.scss index 2212ea5..c478fcd 100644 --- a/app/static/css/site.scss +++ b/app/static/css/site.scss @@ -116,6 +116,7 @@ header { width: 100%; aspect-ratio: 16/9; object-fit: cover; + object-position: top; } } .content {