From 2a881f392087a5856dbbcb63460da7d3b9428aee Mon Sep 17 00:00:00 2001 From: Nikolai Petukhov Date: Sat, 21 Sep 2024 17:25:03 +0300 Subject: [PATCH] small fix --- src/components/home/Card.jsx | 6 +++++- src/components/home/css/card.css | 2 ++ src/components/init/css/navButton.css | 13 +++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/components/home/Card.jsx b/src/components/home/Card.jsx index 84016c3..cc8ec97 100644 --- a/src/components/home/Card.jsx +++ b/src/components/home/Card.jsx @@ -43,6 +43,10 @@ const Card = (props) => { transition: color 0.3s ease-in; } + h2 { + margin-top: 0; + } + &:hover { box-shadow: 0 10px 40px rgb(${hexToRgb(props.color)}); cursor: pointer; @@ -56,7 +60,7 @@ const Card = (props) => { flex-direction: column; border-radius: 2vh; - padding: 3vw; + padding: 5vw; } ` diff --git a/src/components/home/css/card.css b/src/components/home/css/card.css index da6cf19..7953498 100644 --- a/src/components/home/css/card.css +++ b/src/components/home/css/card.css @@ -34,6 +34,8 @@ margin-left: 4vw; margin-right: 4vw; + + padding-top: 0; } .ChatsList { diff --git a/src/components/init/css/navButton.css b/src/components/init/css/navButton.css index cba2775..7b85eb5 100644 --- a/src/components/init/css/navButton.css +++ b/src/components/init/css/navButton.css @@ -17,3 +17,16 @@ font-weight: bold; } +@media only screen and (max-width: 800px) { + .MyButton.singleNavButton p { + font-size: 2.5vh; + } + + .MyButton.singleNavButton { + min-width: 60vw; + border-radius: 30vh; + + margin-top: 3vh; + } +} +