summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-09-04 15:14:15 +0200
committerLibravatar GitHub <noreply@github.com>2022-09-04 15:14:15 +0200
commit58c00d9f2f0bdb0e51b619dbe4efdf5b39de922f (patch)
treef0d949a372264edac4ca1991ce1891fe18d60956
parent[bugfix] Use 'Image' instead of unrecognized 'Gif' type for media attachments... (diff)
downloadgotosocial-58c00d9f2f0bdb0e51b619dbe4efdf5b39de922f.tar.xz
[frontend] Transition neatly from cropped photos (#802)
-rw-r--r--web/template/status.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/status.tmpl b/web/template/status.tmpl
index 56d98d89b..16f724a94 100644
--- a/web/template/status.tmpl
+++ b/web/template/status.tmpl
@@ -32,7 +32,7 @@
<label for="sensitiveMedia-{{.ID}}" class="button" role="button" tabindex="0">Show sensitive media</label>
</div>
</div>
- <a href="{{.URL}}" target="_blank" {{if .Description}}title="{{.Description}}"{{end}} data-pswp-width="{{.Meta.Original.Width}}px" data-pswp-height="{{.Meta.Original.Height}}px">
+ <a href="{{.URL}}" target="_blank" {{if .Description}}title="{{.Description}}"{{end}} data-pswp-width="{{.Meta.Original.Width}}px" data-pswp-height="{{.Meta.Original.Height}}px" data-cropped="true">
<img src="{{.PreviewURL}}" {{if .Description}}alt="{{.Description}}"{{end}} data-blurhash="{{.Blurhash}}"/>
</a>
</div>