From 5a881836cb58f5213677623a9cca2484ffa85a53 Mon Sep 17 00:00:00 2001 From: Daniel Shleifman Date: Fri, 4 Jun 2021 22:00:16 +0300 Subject: [PATCH] empty poster removed from mobile view in details --- .../DialogTorrentDetailsContent/style.js | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/web/src/components/DialogTorrentDetailsContent/style.js b/web/src/components/DialogTorrentDetailsContent/style.js index 69beb40..f134e01 100644 --- a/web/src/components/DialogTorrentDetailsContent/style.js +++ b/web/src/components/DialogTorrentDetailsContent/style.js @@ -47,15 +47,13 @@ export const Poster = styled.div` } @media (max-width: 840px) { - height: 200px; - - ${!poster && - css` - width: 150px; - svg { - transform: translateY(-3px); - } - `} + ${poster + ? css` + height: 200px; + ` + : css` + display: none; + `} } `} `