[#11665] Youtube-link preview is resized incorrectly in chat view for videos with short title

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2021-01-20 14:33:35 +01:00
parent af2b053fa9
commit cb66886aab
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,8 @@
nil)
(when-not error
[react/touchable-highlight
{:on-press #(when (and (security/safe-link? link))
{:style {:align-self :stretch}
:on-press #(when (and (security/safe-link? link))
(re-frame/dispatch
[:browser.ui/message-link-pressed link]))}
[react/view (styles/link-preview-wrapper outgoing timeline)

View File

@ -110,8 +110,7 @@
:border-bottom-right-radius (if timeline 16 (if outgoing 4 16))
:border-width 1
:border-color components.colors/gray-lighter
:margin-vertical 4
:background-color (:ui-background @colors/theme)})
:margin-vertical 4})
(defn link-preview-image [outgoing]
{:height 170