diff --git a/client/src/components/card/closed-debate-card.tsx b/client/src/components/card/closed-debate-card.tsx index 03e4072..2f92da3 100644 --- a/client/src/components/card/closed-debate-card.tsx +++ b/client/src/components/card/closed-debate-card.tsx @@ -1,16 +1,13 @@ import "./closed-debate-card.css"; -import React from "react"; import { Link } from "react-router-dom"; import DebateBar from "./debate-bar"; import useFormatNumber from "../../utils/useFormatNumber"; -interface CardProps { } - -const ClosedDebateCard: React.FC = () => { +const ClosedDebateCard = () => { return (
-

Sony is the best camera

+

Sony is the best camera of all time.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Non labore necessitatibus reiciendis rem ad perferendis.

diff --git a/client/src/components/card/open-debate-card.css b/client/src/components/card/open-debate-card.css index 5b9eef3..c3d555b 100644 --- a/client/src/components/card/open-debate-card.css +++ b/client/src/components/card/open-debate-card.css @@ -14,6 +14,9 @@ #open-card .debate-header h2 { font-size: 20px; font-weight: 600; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; } #open-card .debate-header a { diff --git a/client/src/components/card/open-debate-card.tsx b/client/src/components/card/open-debate-card.tsx index bba7dda..3d778df 100644 --- a/client/src/components/card/open-debate-card.tsx +++ b/client/src/components/card/open-debate-card.tsx @@ -1,10 +1,7 @@ import "./open-debate-card.css"; -import React from "react"; import { Link } from "react-router-dom"; -interface CardProps { } - -const OpenDebateCard: React.FC = () => { +const OpenDebateCard = () => { return (
diff --git a/client/src/components/sidebar/left-sidebar.css b/client/src/components/sidebar/left-sidebar.css index 7456243..b85f76a 100644 --- a/client/src/components/sidebar/left-sidebar.css +++ b/client/src/components/sidebar/left-sidebar.css @@ -26,11 +26,13 @@ #left-sidebar ul { max-width: fit-content; height: 100%; + max-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column; justify-content: center; gap: 75px; + overflow-y: auto; } #left-sidebar .links__wrapper { diff --git a/client/src/components/sidebar/profile.tsx b/client/src/components/sidebar/profile.tsx index 94c962a..3128ac6 100644 --- a/client/src/components/sidebar/profile.tsx +++ b/client/src/components/sidebar/profile.tsx @@ -46,7 +46,15 @@ const Profile = () => { ) : isAuthenticated === AuthStatus.Authenticated ? ( <> - +