Skip to content

Commit

Permalink
style: text overflow 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
gxxrxn committed Feb 26, 2024
1 parent a5f71dd commit 996e6d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/app/book/[bookId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const BookTopNavigation = ({ bookId }: { bookId: APIBook['bookId'] }) => (

const BookTitle = ({ bookId }: { bookId: APIBook['bookId'] }) => {
const { data: title } = useBookTitle(bookId);
return <p>{title}</p>;
return <p className="w-full truncate">{title}</p>;
};

const Heading = ({ text }: { text: string }) => (
Expand Down
8 changes: 5 additions & 3 deletions src/v1/book/detail/BookInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const BookInfo = ({ bookId }: { bookId: APIBook['bookId'] }) => {
<div className="flex items-end gap-[2rem]">
<BookCover size="2xlarge" src={imageUrl} />

<div className="flex flex-col gap-[0.5rem]">
<div className="flex min-w-0 flex-col gap-[0.5rem]">
<BookmarkButton />
<BookTitle title={title} />
<BookAuthor author={author} />
Expand Down Expand Up @@ -107,8 +107,10 @@ export const BookInfoSkeleton = () => (
<Skeleton>
<div className="flex flex-col gap-[2rem] rounded-l-[1.5rem] bg-white p-[2rem] shadow-bookcard">
<div className="flex items-end gap-[2rem]">
<Skeleton.Rect width="14rem" height="19.6rem" rounded="medium" />
<div className="flex flex-col gap-[1rem]">
<div className="flex-shrink-0">
<Skeleton.Rect width="14rem" height="19.6rem" rounded="medium" />
</div>
<div className="flex flex-col gap-[1rem] overflow-x-clip">
<Skeleton.Text fontSize="xlarge" width="16rem" />
<Skeleton.Text fontSize="small" width="7rem" />
</div>
Expand Down

0 comments on commit 996e6d8

Please sign in to comment.