Skip to content

Commit 73394f6

Browse files
committed
Squashed commit of the following:
commit c07799a Merge: 0b2fa2b 6d6f73e Author: 백승범 <bdh3659@naver.com> Date: Sat Aug 23 00:58:43 2025 +0900 Merge branch 'develop' of https://github.com/YAPP-Github/26th-Web-Team-3-FE into qa/additional/#199 commit 0b2fa2b Author: 백승범 <bdh3659@naver.com> Date: Sat Aug 23 00:43:48 2025 +0900 style: grid-layout 모바일 view 수정 commit 278afe5 Author: 백승범 <bdh3659@naver.com> Date: Sat Aug 23 00:24:26 2025 +0900 fix: 편지 담기 reset 추가 commit 6d6f73e Author: beom <74394824+seung365@users.noreply.github.com> Date: Sat Aug 23 00:05:59 2025 +0900 fix: 모달 닫힘 경고 팝업 뜨도록 수정 및 esc props 전달 (#198)
1 parent b327515 commit 73394f6

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

app/(sub)/capsule-detail/[invite-code]/[id]/letters/_components/grid-layout/grid-layout.css.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@ import { style } from "@vanilla-extract/css";
33

44
export const container = style({
55
width: "100vw",
6-
padding: "2rem",
76
maxWidth: "120rem",
7+
padding: "0.8rem",
8+
...screen.md({
9+
padding: "1.6rem",
10+
}),
811
});
912

1013
export const grid = style({
1114
display: "grid",
1215
gridTemplateColumns: "repeat(auto-fill, minmax(16.4rem, 1fr))",
13-
gap: "2.8rem 1.2rem",
1416
margin: "0 auto",
1517
maxWidth: "120rem",
18+
gap: "2.4rem 0.8rem",
1619
...screen.md({
1720
gridTemplateColumns: "repeat(auto-fill, minmax(24rem, 1fr))",
21+
gap: "2.8rem 1.2rem",
1822
}),
1923
});

app/(sub)/capsule-detail/_components/write-modal/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ const WriteModal = ({
8080
writeLetterMutate(data, {
8181
onSuccess: () => {
8282
setIsConfirmOpen(false);
83+
reset({
84+
capsuleId: capsuleData.result.id.toString(),
85+
content: "",
86+
from: "",
87+
objectKey: "",
88+
});
89+
if (uploadedImageUrl) {
90+
removeImage();
91+
}
8392
onClose();
8493
onSuccess();
8594
},

0 commit comments

Comments
 (0)