From b3276461233ec8949e08a13fa69eaadc06df6a70 Mon Sep 17 00:00:00 2001 From: Daniel Shleifman Date: Wed, 2 Jun 2021 20:16:12 +0300 Subject: [PATCH] refactor --- web/src/components/TorrentCard/style.js | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/web/src/components/TorrentCard/style.js b/web/src/components/TorrentCard/style.js index 350f4e5..f8d9555 100644 --- a/web/src/components/TorrentCard/style.js +++ b/web/src/components/TorrentCard/style.js @@ -107,20 +107,6 @@ export const TorrentCardDescription = styled.div` .description-torrent-title { overflow: auto; word-break: break-all; - - @media (max-width: 770px) { - font-size: 0.6rem; - } - - @media (max-width: 600px), (max-height: 500px) { - font-size: 11px; - margin-bottom: 3px; - margin-left: 0; - } - - @media (max-width: 410px) { - font-size: 10px; - } } .description-statistics-wrapper { @@ -155,7 +141,10 @@ export const TorrentCardDescription = styled.div` margin-bottom: 0; margin-left: 0; } + } + .description-torrent-title, + .description-statistics-element-value { @media (max-width: 770px) { font-size: 0.6rem; } @@ -163,7 +152,6 @@ export const TorrentCardDescription = styled.div` @media (max-width: 600px), (max-height: 500px) { font-size: 11px; margin-bottom: 3px; - margin-left: 0; } @media (max-width: 410px) { @@ -204,7 +192,7 @@ export const StyledButton = styled.button` } } - @media (max-width: 500px) { + @media (max-width: 770px) { font-size: 0.7rem; svg {