Skip to content

Commit acdebcb

Browse files
committed
fix(home): 버그 수정
1 parent 36400df commit acdebcb

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/templates/home/layouts/BasicMode/HomeMiniBanner.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const HomeMiniBanner = () => {
1717

1818
const Layout = styled.div`
1919
width: 20vw;
20-
height: 210px;
20+
height: 180px;
2121
`;
2222

2323
const Container = styled(Link)`

src/templates/home/layouts/BasicMode/HomePostList.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ const HomePostList = ({ posts }: HomePostListProps) => {
1818
{posts?.map((post) => (
1919
<PostListItem href={`${ROUTER.POST.LIST}/${post.id}`} key={post.id}>
2020
<StyledTitle>{post.title}</StyledTitle>
21-
<StyledDate>
22-
{dayjs(post.createdAt).format("YYYY년 M월 D일")}
23-
</StyledDate>
21+
<StyledDate>{dayjs(post.createdAt).format("M월 D일")}</StyledDate>
2422
</PostListItem>
2523
))}
2624
</Container>
@@ -31,7 +29,7 @@ const Container = styled.div`
3129
width: 100%;
3230
padding: 8px 0;
3331
${flex.COLUMN_FLEX};
34-
gap: 8px;
32+
gap: 4px;
3533
`;
3634

3735
const PostListItem = styled(Link)`
@@ -44,6 +42,11 @@ const PostListItem = styled(Link)`
4442
const StyledTitle = styled.span`
4543
${font.p3};
4644
font-weight: 600;
45+
46+
overflow: hidden;
47+
white-space: nowrap;
48+
text-overflow: ellipsis;
49+
word-break: break-all;
4750
`;
4851

4952
const StyledDate = styled.span`

src/templates/timetable/layouts/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const TimeTablePage = () => {
1818
{dayjs().locale("ko").format("YYYY년 M월 D일")}
1919
</SubTitleText>
2020
</Row>
21-
{!Object.entries(dayTimeTable).length && (
21+
{Object.entries(dayTimeTable).length && (
2222
<TimeTableBox>
2323
<Column>
2424
{Array.from({ length: 8 }).map((_, i) => (

0 commit comments

Comments
 (0)