better previews for documents
This commit is contained in:
parent
559eaeaa66
commit
f5e4ad0de6
2 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,8 @@ class Item(models.Model):
|
||||||
if not key:
|
if not key:
|
||||||
key = meta.attrib.get('property')
|
key = meta.attrib.get('property')
|
||||||
value = meta.attrib.get('content')
|
value = meta.attrib.get('content')
|
||||||
|
if key == "thumbnail":
|
||||||
|
value = value.replace('/512p', '/1024p')
|
||||||
if key and value:
|
if key and value:
|
||||||
if key in ('viewport', ):
|
if key in ('viewport', ):
|
||||||
continue
|
continue
|
||||||
|
|
|
@ -116,6 +116,7 @@ header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
aspect-ratio: 16/9;
|
aspect-ratio: 16/9;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
object-position: top;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
|
|
Loading…
Reference in a new issue