[#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)
|
nil)
|
||||||
(when-not error
|
(when-not error
|
||||||
[react/touchable-highlight
|
[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
|
(re-frame/dispatch
|
||||||
[:browser.ui/message-link-pressed link]))}
|
[:browser.ui/message-link-pressed link]))}
|
||||||
[react/view (styles/link-preview-wrapper outgoing timeline)
|
[react/view (styles/link-preview-wrapper outgoing timeline)
|
||||||
|
|
|
@ -110,8 +110,7 @@
|
||||||
:border-bottom-right-radius (if timeline 16 (if outgoing 4 16))
|
:border-bottom-right-radius (if timeline 16 (if outgoing 4 16))
|
||||||
:border-width 1
|
:border-width 1
|
||||||
:border-color components.colors/gray-lighter
|
:border-color components.colors/gray-lighter
|
||||||
:margin-vertical 4
|
:margin-vertical 4})
|
||||||
:background-color (:ui-background @colors/theme)})
|
|
||||||
|
|
||||||
(defn link-preview-image [outgoing]
|
(defn link-preview-image [outgoing]
|
||||||
{:height 170
|
{:height 170
|
||||||
|
|
Loading…
Reference in New Issue