Skip to content

Commit

Permalink
fix: 헤더의 다락방 이름이 짧게 나오는 것을 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeml06 committed Aug 22, 2024
1 parent 15403c8 commit d8bb61f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import { SerializedStyles, css } from '@emotion/react';

export const name = ({ font }: { font: string | SerializedStyles }) => css`
${font}
max-width: 40vw;
overflow-x: hidden;
max-width: 30%;
text-overflow: ellipsis;
white-space: nowrap;
`;
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import HighlightSpan from '@_components/HighlightSpan/HighlightSpan';
import useMyInfo from '@_hooks/queries/useMyInfo';
import { useNavigate } from 'react-router-dom';
import useNowDarakbangName from '@_hooks/queries/useNowDarakbangNameById';
import { theme } from '@_common/theme/theme.style';
import { common } from '@_common/common.style';

export default function DarakbangLandingPage() {
const navigate = useNavigate();
Expand All @@ -16,7 +18,9 @@ export default function DarakbangLandingPage() {
<CompleteLayout>
<CompleteLayout.Header>
<CompleteLayout.Header.Center>
<DarakbangNameWrapper>{darakbangName}</DarakbangNameWrapper>
<span css={[[theme.typography.h5, common.nonScroll]]}>
<DarakbangNameWrapper>{darakbangName}</DarakbangNameWrapper>
</span>
</CompleteLayout.Header.Center>
</CompleteLayout.Header>
<CompleteLayout.ContentContainer>
Expand Down

0 comments on commit d8bb61f

Please sign in to comment.