Skip to content

Commit

Permalink
feat: 리스트 보기 타이틀 아래 태그 리스트 출력
Browse files Browse the repository at this point in the history
  • Loading branch information
dbwhdtjr0457 committed Dec 5, 2023
1 parent 8297181 commit e339244
Showing 1 changed file with 42 additions and 9 deletions.
51 changes: 42 additions & 9 deletions FE/src/components/DiaryModal/DiaryListModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,24 @@ function DiaryListModal() {
<DiaryTitleListItemShape>
<div
id={diary.uuid}
style={{
width: "6rem",
height: "6rem",
marginRight: "1rem",
}}
dangerouslySetInnerHTML={{
__html: shapeHTML,
}}
/>
</DiaryTitleListItemShape>
{diary.title}
<DiarytitleListContent>
{diary.title}
<DiaryTitleTagList>
{diary.tags.map((tag) => (
<DiaryTitleTagItem key={tag}>#{tag}</DiaryTitleTagItem>
))}
</DiaryTitleTagList>
</DiarytitleListContent>
</DiaryTitleListItem>
);
})}
Expand Down Expand Up @@ -586,11 +598,12 @@ const DiaryTitleListItemWrapper = styled.div`

const DiaryTitleListItem = styled.div`
width: 100%;
height: 6rem;
height: 7rem;
border-top: 0.5px solid #ffffff;
display: flex;
align-items: center;
justify-content: center;
padding: 0 1rem;
box-sizing: border-box;
Expand All @@ -609,19 +622,39 @@ const DiaryTitleListItem = styled.div`
`;

const DiaryTitleListItemShape = styled.div`
width: 5rem;
height: 5rem;
display: flex;
justify-content: center;
align-items: center;
`;

const DiarytitleListContent = styled.div`
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
gap: 0.5rem;
font-size: 1.5rem;
overflow: hidden;
`;

const DiaryTitleTagList = styled.div`
width: 100%;
display: flex;
align-items: center;
gap: 0.5rem;
`;

margin-right: 1rem;
const DiaryTitleTagItem = styled.div`
height: 1.5rem;
& > div {
width: 100%;
height: 100%;
}
font-size: 1rem;
display: flex;
align-items: center;
justify-content: center;
`;

const DiaryTitle = styled.div`
Expand Down

0 comments on commit e339244

Please sign in to comment.