Skip to content

Commit

Permalink
fix(member): component overflow (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
gwansikk committed May 12, 2024
1 parent 2a9e569 commit c32eddb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
1 change: 1 addition & 0 deletions apps/member/src/components/common/Avatar/Avatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const Avatar = ({ className, src, size = 'md', roleLevel }: AvatarProps) => {
<Image
src={createImageUrl(src)}
alt="avatar"
width={sizeStyled}
className="rounded-full object-cover"
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const CommunityPostsSection = ({
return (
<Section className="space-y-2">
{title && <Section.Header title={title} />}
<Section.Body>
<Section.Body className="overflow-auto">
<Table head={TABLE_HEAD.COMMUNITY_DETAIL}>
{data.totalItems === 0 ? (
<Table.Row>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { useCallback } from 'react';

import { Badge, Button, DetailsList, Grid, Tabs } from '@clab/design-system';

import Image from '@components/common/Image/Image';
Expand Down Expand Up @@ -51,15 +49,12 @@ const BookDetailSection = ({ data }: BookDetailSectionProps) => {
reviewLinks,
} = data;

const handleBorrowClick = useCallback(
(bookId: number) => {
bookBorrowMutate({
bookId: bookId,
borrowerId: myInfo.id,
});
},
[bookBorrowMutate, myInfo.id],
);
const handleBorrowClick = (bookId: number) => {
bookBorrowMutate({
bookId: bookId,
borrowerId: myInfo.id,
});
};
/**
* 온라인 서점에서 책의 정보를 검색하는 함수입니다.
* 서버에 저장된 온라인 서점 URL이 존재할 경우 해당 URL로 이동합니다.
Expand All @@ -78,8 +73,8 @@ const BookDetailSection = ({ data }: BookDetailSectionProps) => {
<Image
src={createImageUrl(imageUrl)}
alt={title}
width="w-[420px]"
height="h-[520px]"
width="max-w-[420px] w-full"
height="max-h-[520px] h-full"
className="object-cover p-4 drop-shadow-lg"
/>
<div className="flex flex-col justify-between gap-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const LibraryNewBooksSection = () => {
<Image
src={imageUrl}
alt={title}
height="h-[310px]"
className="rounded-lg object-cover transition-transform group-hover:scale-105"
/>
<div className="pointer-events-none absolute inset-0 rounded-lg bg-gradient-to-t from-black/60 via-black/30 opacity-0 group-hover:opacity-100" />
Expand Down

0 comments on commit c32eddb

Please sign in to comment.