Skip to content

Commit

Permalink
design: 디스커션 리스트 레이아웃 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
chosim-dvlpr committed Oct 23, 2024
1 parent ce151b8 commit 9fa7e43
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styled from 'styled-components';
import CommentCount from '@/assets/images/comment-count.svg';
import media from '@/styles/mediaQueries';

// Content

Expand All @@ -26,20 +27,28 @@ export const ItemContainer = styled.div`
&:hover {
transform: scale(1.01);
}
${media.small`
padding: 1.4rem 2rem;
`}
`;

export const BadgeWrapper = styled.div`
display: flex;
gap: 0.7rem;
flex-wrap: wrap;
`;

export const ContentWrapper = styled.div`
display: flex;
flex-direction: column;
gap: 0.5rem;
flex: 1;
`;

export const Title = styled.p`
width: 100%;
word-break: break-all;
color: ${(props) => props.theme.colors.black};
${(props) => props.theme.font.body}
`;
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/components/common/Badge/Badge.styled.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled, { css } from 'styled-components';
import type { BadgeVariant } from '.';
import type { DefaultTheme } from 'styled-components/dist/types';
import media from '@/styles/mediaQueries';

interface BadgeContainerProps {
$variant: BadgeVariant;
Expand Down Expand Up @@ -32,5 +33,12 @@ export const BadgeContainer = styled.div<BadgeContainerProps>`
width: fit-content;
padding: 0.4rem 0.8rem;
border-radius: 0.4rem;
white-space: wrap;
white-space: nowrap;
-webkit-line-clamp: 1;
text-overflow: ellipsis;
overflow: hidden;
${media.small`
max-width: 10rem;
`}
`;
1 change: 1 addition & 0 deletions frontend/src/components/common/TagList/TagList.styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export const Container = styled.div`
display: flex;
flex-direction: column;
gap: 0.7rem;
flex-wrap: wrap;
`;

export const Label = styled.p`
Expand Down

0 comments on commit 9fa7e43

Please sign in to comment.