Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export const NoticeDate = styled.span(({ theme }) => ({
color: theme.colors.textSecondary,
width: '80px',
textAlign: 'right',
whiteSpace: 'nowrap',
Comment on lines 74 to +75
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

white-space: nowrap을 추가하여 줄바꿈을 방지하는 것은 좋은 해결책입니다. 하지만, 텍스트가 할당된 너비(80px)를 초과할 경우 내용이 넘쳐 레이아웃이 깨질 수 있습니다. 이를 방지하기 위해 overflow: hiddentext-overflow: ellipsis를 함께 사용하여 텍스트가 길어질 경우 '...'으로 표시되도록 하는 것을 권장합니다. 이렇게 하면 UI가 더 안정적으로 유지됩니다.

  textAlign: 'right',
  whiteSpace: 'nowrap',
  overflow: 'hidden',
  textOverflow: 'ellipsis',

[`@media (max-width: ${theme.breakpoints.mobile})`]: {
width: 'auto',
textAlign: 'left',
Expand All @@ -84,6 +85,7 @@ export const NoticeAuthor = styled.span(({ theme }) => ({
color: theme.colors.textSecondary,
width: '60px',
textAlign: 'right',
whiteSpace: 'nowrap',
Comment on lines 87 to +88
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

NoticeDate와 마찬가지로, 작성자 이름이 할당된 너비(60px)를 초과할 경우를 대비하여 overflow: hiddentext-overflow: ellipsis 속성을 추가하는 것이 좋습니다. 작성자 이름은 길이가 다양할 수 있으므로 이 처리를 통해 예기치 않은 UI 깨짐을 방지할 수 있습니다.

  textAlign: 'right',
  whiteSpace: 'nowrap',
  overflow: 'hidden',
  textOverflow: 'ellipsis',

[`@media (max-width: ${theme.breakpoints.mobile})`]: {
width: 'auto',
textAlign: 'left',
Expand Down
Loading