Skip to content

Commit

Permalink
design: category min, max width 지정 및 ellipsis 처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Sep 29, 2023
1 parent d817440 commit 08f377e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/bookmarks/ui/BookmarkArticle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ const BookMarkArticle = () => {
<CategoryAndIconsWrapper>
<CategoryButtonWrapper>
<CategoryButton height={2.5} buttonColor="lightPrimary">
<Text.Span color="grey900" weight="bold">
<CategoryText color="grey900" weight="bold">
{bookmarkDetail?.categoryName ?? ''}
</Text.Span>
</CategoryText>
</CategoryButton>
</CategoryButtonWrapper>
<LikeAndMessageIconWrapper>
Expand Down Expand Up @@ -199,11 +199,19 @@ const CategoryAndIconsWrapper = styled.div`
`;

const CategoryButtonWrapper = styled.div`
width: ${getRem(154)};
max-width: ${getRem(220)};
min-width: ${getRem(150)};
`;

const CategoryButton = styled(Button)`
color: ${theme.colors.black};
padding: 1rem;
`;

const CategoryText = styled(Text.Span)`
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
`;

const IconWrapper = styled.div`
Expand Down

0 comments on commit 08f377e

Please sign in to comment.