From fbe50da180c493396b104e6cff82721f933f05e7 Mon Sep 17 00:00:00 2001 From: kyuran kim <57716832+gxxrxn@users.noreply.github.com> Date: Wed, 12 Jun 2024 17:24:14 +0900 Subject: [PATCH] =?UTF-8?q?[#616]=20=EC=B1=85=EC=9E=A5=20=EC=A2=8B?= =?UTF-8?q?=EC=95=84=EC=9A=94=20=EB=B1=83=EC=A7=80=20UI=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#620)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: Badge style 수정 - 모임 목록 페이지 카드 badge size medium으로 통일 * feat: svgo removeViewBox 속성 off * refactor: like button style 수정, heart svg 수정 * refactor: 북카이브 책장, 프로필 페이지 책장/모임 영역 ui(좋아요 개수 위치, 더보기 화살표) 수정 --- next.config.js | 20 ++++++++++++- public/icons/heart.svg | 4 +-- src/v1/base/Badge.tsx | 2 +- src/v1/base/LikeButton.tsx | 8 ++---- src/v1/bookGroup/DetailBookGroupCard.tsx | 4 +-- src/v1/bookShelf/BookShelf.tsx | 21 +++++++------- .../bookShelf/ProfileBookshelfPresenter.tsx | 28 ++++++++----------- .../profile/group/ProfileGroupPresenter.tsx | 11 ++++---- 8 files changed, 53 insertions(+), 45 deletions(-) diff --git a/next.config.js b/next.config.js index f8161e3d..76f6c889 100644 --- a/next.config.js +++ b/next.config.js @@ -7,7 +7,25 @@ const nextConfig = { webpack: config => { config.module.rules.push({ test: /\.svg$/, - use: ['@svgr/webpack'], + use: [ + { + loader: '@svgr/webpack', + options: { + svgoConfig: { + plugins: [ + { + name: 'preset-default', + params: { + overrides: { + removeViewBox: false, + }, + }, + }, + ], + }, + }, + }, + ], }); return config; }, diff --git a/public/icons/heart.svg b/public/icons/heart.svg index 188a9c64..18dd12e7 100644 --- a/public/icons/heart.svg +++ b/public/icons/heart.svg @@ -1,3 +1,3 @@ - - + + diff --git a/src/v1/base/Badge.tsx b/src/v1/base/Badge.tsx index 3330bc4f..0076bbd5 100644 --- a/src/v1/base/Badge.tsx +++ b/src/v1/base/Badge.tsx @@ -82,7 +82,7 @@ const Badge = ({ return (
{children} diff --git a/src/v1/base/LikeButton.tsx b/src/v1/base/LikeButton.tsx index ee71d2cd..9b091d8a 100644 --- a/src/v1/base/LikeButton.tsx +++ b/src/v1/base/LikeButton.tsx @@ -15,13 +15,11 @@ const LikeButton = ({ isLiked, likeCount, onClick }: LikeButtonProps) => { return (