mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-16 18:27:34 -06:00
[feature] Update attachment format, receive + send focalPoint prop + use it on the frontend
This commit is contained in:
parent
68ed7aba25
commit
b841e9e9b1
19 changed files with 595 additions and 81 deletions
|
|
@ -29,6 +29,10 @@
|
|||
height="{{- .Meta.Small.Height -}}"
|
||||
data-blurhash-hash="{{- .Blurhash -}}"
|
||||
data-sensitive="{{- .Sensitive -}}"
|
||||
{{- if or (ne .Meta.Focus.X 0.0) (ne .Meta.Focus.Y 0.0) }}
|
||||
data-object-position="{{ objectPosition .Meta.Focus.X .Meta.Focus.Y }}"
|
||||
{{- else }}
|
||||
{{- end }}
|
||||
/>
|
||||
{{- else }}
|
||||
<img
|
||||
|
|
@ -69,6 +73,10 @@
|
|||
data-blurhash-height="{{- .Item.Meta.Small.Height -}}"
|
||||
data-blurhash-hash="{{- .Item.Blurhash -}}"
|
||||
data-blurhash-aspect="{{- .Item.Meta.Small.Aspect -}}"
|
||||
{{- if or (ne .Item.Meta.Focus.X 0.0) (ne .Item.Meta.Focus.Y 0.0) }}
|
||||
data-blurhash-object-position="{{ objectPosition .Item.Meta.Focus.X .Item.Meta.Focus.Y }}"
|
||||
{{- else }}
|
||||
{{- end }}
|
||||
></div>
|
||||
{{- end }}
|
||||
</summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue