Skip to content

Commit 669f43b

Browse files
authored
Merge pull request #179 from part3-4team-Taskify/feature/Gnb
[Style] 토스트 길이에 따라 width 늘어나도록 수정, 줄바꿈 허용 변경, 최대 너비 설정
2 parents fb585bc + 0307ddb commit 669f43b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/card/Profile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function ProfileCard() {
3232
const file = event.target.files[0];
3333

3434
if (file.size > MAX_IMAGE_SIZE) {
35-
toast.error("3.5MB 이하의 이미지만 업로드할 수 있습니다.");
35+
toast.error("3.5MB 이하만 등록 가능합니다.");
3636
return;
3737
}
3838

src/styles/globals.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
}
1919

2020
.Toastify__toast {
21-
width: 250px !important;
21+
width: fit-content !important;
22+
max-width: 380px !important;
23+
white-space: normal !important;
24+
text-align: center !important;
25+
margin: 0 auto !important;
26+
word-break: keep-all; /* 단어 단위로 줄바꿈 */
2227
border-radius: 16px;
2328
background-color: #f3f0ff !important;
2429
padding: 14px 18px;

0 commit comments

Comments
 (0)