[#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:
parent
af2b053fa9
commit
cb66886aab
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue