Skip to content

Commit

Permalink
client: modify alignments
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed Apr 7, 2024
1 parent 6591d65 commit 4112f39
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 10 deletions.
7 changes: 2 additions & 5 deletions client/src/components/card/closed-debate-card.tsx
Original file line number Diff line number Diff line change
@@ -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<CardProps> = () => {
const ClosedDebateCard = () => {
return (
<div id='closed-card'>
<div className='left'>
<h2>Sony is the best camera</h2>
<h2>Sony is the best camera of all time.</h2>
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Non labore necessitatibus reiciendis rem ad perferendis.
</p>
Expand Down
3 changes: 3 additions & 0 deletions client/src/components/card/open-debate-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 1 addition & 4 deletions client/src/components/card/open-debate-card.tsx
Original file line number Diff line number Diff line change
@@ -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<CardProps> = () => {
const OpenDebateCard = () => {
return (
<div id='open-card'>
<div className='debate-header'>
Expand Down
2 changes: 2 additions & 0 deletions client/src/components/sidebar/left-sidebar.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 9 additions & 1 deletion client/src/components/sidebar/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,15 @@ const Profile = () => {
<LoadingSkeleton />
) : isAuthenticated === AuthStatus.Authenticated ? (
<>
<Link to='/notifications' className='notification-btn'>
<Link
to='/notifications'
className='notification-btn'
style={{
borderWidth: '2px',
borderStyle: 'solid',
borderColor: location.pathname === '/notifications' ? 'var(--body_color)' : 'transparent'
}}
>
<PiBellSimpleFill size={20} />
</Link>
<div
Expand Down

0 comments on commit 4112f39

Please sign in to comment.