Skip to content

Commit

Permalink
fix: design fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-hak committed Jun 13, 2024
1 parent 9b52ed6 commit caacc69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/components/notification/NoticeCommunityLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ export const NotificationCommunityLayout = ({ notice }: { notice: NotificationTy
<Link href={`community/${notice?.targetId}`}>
<div
key={notice?.notificationId}
className="flex flex-row justify-start items-center mt-[16px] mb-[36px] relative">
className="flex flex-row justify-start items-center mt-[9px] mb-[20px] relative">
<img src={notice?.image} className="mr-[14px] w-[28px] h-[28px]" />

<div className="flex flex-col justify-start items-start">
<div className=" w-[250px] text-xs font-medium text-neutral-600 flex-grow">
<div className=" w-[235px] text-sm font-medium text-neutral-600 flex-grow">
{notice?.content}
</div>
</div>
<div
className="min-w-[50px] w-auto pl-[20px] pb-[35px]] text-xs font-normal text-neutral-400 absolute
className="min-w-[50px] w-auto pl-[20px] pb-[35px]] text-xs font-light text-neutral-400 absolute
top-0 right-2 ">
{CalculateTime(notice?.date)}
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/notification/NotificationLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export const NotificationLayout = ({ notice }: { notice: NotificationType }) =>
<img src={notice?.image} className="mr-[14px] w-[28px] h-[28px]" />

<div className="flex flex-col justify-start items-start">
<div className="text-base font-medium text-black mb-[6px]">{notice?.title}</div>
<div className="text-xs font-medium text-neutral-600 flex-grow">
<div className=" text-sm font-bold text-black mb-[6px]">{notice?.title}</div>
<div className="text-sm font-medium text-neutral-600 flex-grow">
{notice?.content}
</div>
</div>
<div
className="min-w-[60px] w-auto pl-[20px] pb-[35px] text-xs font-normal text-neutral-400 absolute
className="min-w-[60px] w-auto pl-[20px] pb-[35px] text-xs font-light text-neutral-400 absolute
top-0 right-2
">
{CalculateTime(notice?.date)}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/notification/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const Notification = () => {
<>
{todayNotifications.length > 0 && (
<Fragment>
<h2 className=" font-bold ">오늘</h2>
<h2 className="text-sm font-semibold ">오늘</h2>
{todayNotifications.map((notice: NotificationType) => (
<Fragment key={notice.notificationId}>
<NotificationCommunityLayout notice={notice} />
Expand All @@ -125,7 +125,7 @@ const Notification = () => {
)}
{pastNotifications.length > 0 && (
<Fragment>
<h2 className=" font-bold mt-[20px] ">최근 7일</h2>
<h2 className=" text-sm font-semibold mt-[20px] ">최근 7일</h2>
{pastNotifications.map((notice: NotificationType) => (
<Fragment key={notice.notificationId}>
<NotificationCommunityLayout notice={notice} />
Expand Down

0 comments on commit caacc69

Please sign in to comment.