From cb66886aab0ea137d9f40bf1e1e0aee771cbc65a Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 20 Jan 2021 14:33:35 +0100 Subject: [PATCH] [#11665] Youtube-link preview is resized incorrectly in chat view for videos with short title Signed-off-by: andrey --- src/status_im/ui/screens/chat/message/link_preview.cljs | 3 ++- src/status_im/ui/screens/chat/message/styles.cljs | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/status_im/ui/screens/chat/message/link_preview.cljs b/src/status_im/ui/screens/chat/message/link_preview.cljs index fcf8faa3cc..2960ff7867 100644 --- a/src/status_im/ui/screens/chat/message/link_preview.cljs +++ b/src/status_im/ui/screens/chat/message/link_preview.cljs @@ -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) diff --git a/src/status_im/ui/screens/chat/message/styles.cljs b/src/status_im/ui/screens/chat/message/styles.cljs index 5f5651b193..e39a71a8b1 100644 --- a/src/status_im/ui/screens/chat/message/styles.cljs +++ b/src/status_im/ui/screens/chat/message/styles.cljs @@ -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