Skip to content

Commit 1353b45

Browse files
committed
[fix] 수정
1 parent 49a5fbd commit 1353b45

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

src/domains/community/api/fetchPost.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ export const fetchPostByTab = async ({
5050
const params = new URLSearchParams();
5151

5252
if (category && category !== 'all') {
53-
const categoryId = tabItem.findIndex((tab) => tab.key === category);
54-
if (categoryId >= 0) {
53+
const categoryId = tabItem.findIndex((tab) => tab.key === category) + 1;
54+
if (categoryId > 0) {
5555
params.set('categoryId', categoryId.toString());
5656
}
5757
}

src/domains/community/write/WriteSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ function WriteSection({ mode, postId }: Props) {
126126
return;
127127
}
128128

129-
const categoryId = tabItem.findIndex((tab) => tab.label === formData.categoryName);
129+
const categoryId = tabItem.findIndex((tab) => tab.label === formData.categoryName) + 1;
130130

131131
if (categoryId === -1) {
132132
toastError('카테고리를 선택해주세요.');
@@ -216,7 +216,7 @@ function WriteSection({ mode, postId }: Props) {
216216
return false;
217217
}
218218

219-
const categoryId = tabItem.findIndex((tab) => tab.label === formData.categoryName);
219+
const categoryId = tabItem.findIndex((tab) => tab.label === formData.categoryName) + 1;
220220
if (categoryId === -1) {
221221
toastError('카테고리를 선택해주세요.');
222222
return false;

src/domains/main/cocktailDrop/CocktailDrop.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,21 @@ function CocktailDrop({ isDesktop = false }: CocktailDropProps) {
4646
// 로고 위에서 아래로 자연스럽게 등장
4747
const screenWidth = window.innerWidth;
4848
const viewportHeight = window.innerHeight;
49-
const isTablet = screenWidth >= 640 && screenWidth < 1024;
5049
const isMobile = screenWidth < 640;
50+
const isTablet = screenWidth >= 640 && screenWidth < 1024;
51+
const isDesktop = screenWidth >= 1024 && screenWidth < 1440;
52+
const isLargeDesktop = screenWidth >= 1440;
5153

5254
// 뷰포트 높이 기반으로 로고 위치 계산
5355
const logoFinalY = isMobile
5456
? `-${viewportHeight * 0.3}px`
5557
: isTablet
56-
? `-${viewportHeight * -0.8}px`
57-
: '0px';
58+
? `${viewportHeight * 0.1}px`
59+
: isDesktop
60+
? -`${viewportHeight * 0.03}px`
61+
: isLargeDesktop
62+
? `${viewportHeight * 0.9}px`
63+
: '0px';
5864

5965
gsap.fromTo(
6066
logoRef.current,

src/domains/main/components/3d/HomeText.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ function HomeText({ isDesktop }: { isDesktop: boolean }) {
77
SSoul이 쉽게 골라드릴게요.
88
</p>
99
) : (
10-
<p className="absolute bottom-45 right-12 font-serif text-xl text-right font-normal z-20">
11-
어떤 칵테일이 끌리시나요? SSoul이 쉽게 골라드릴게요.
10+
<p className="absolute bottom-45 right-12 font-serif text-2xl text-right font-normal z-20">
11+
어떤 칵테일이 끌리시나요? <br /> SSoul이 쉽게 골라드릴게요.
1212
</p>
1313
)}
1414
</>

src/domains/shared/components/comment/CommentList.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ function CommentList({
6767
aria-label="댓글 목록"
6868
className="flex flex-col mt-6 overflow-y-auto no-scrollbar"
6969
ref={parentRef}
70-
style={{ minHeight: '300px', maxHeight: '600px' }}
7170
>
7271
<ul>
7372
{comments?.map((comment, index) => {

0 commit comments

Comments
 (0)