fix(profile): 한줄 소개 편집을 ✓/✕ 아이콘 버튼으로 변경
텍스트 저장/취소 버튼이 줄바꿈되며 프로필 카드를 밀어버리던 문제 수정. input과 같은 줄에 24px check(저장)/x(취소) 아이콘 버튼 2개 배치. JS의 textContent 토글 제거(아이콘 지워지지 않도록 disabled만). Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -28,7 +28,7 @@ function initBio() {
|
||||
e.preventDefault();
|
||||
const bio = input.value.trim().slice(0, 80);
|
||||
const saveBtn = $("#bioSave");
|
||||
if (saveBtn) { saveBtn.disabled = true; saveBtn.textContent = "저장 중…"; }
|
||||
if (saveBtn) saveBtn.disabled = true;
|
||||
try {
|
||||
const res = await fetch("/profile/bio", {
|
||||
method: "POST",
|
||||
@@ -43,7 +43,7 @@ function initBio() {
|
||||
} catch (err) {
|
||||
toast("저장에 실패했어요");
|
||||
} finally {
|
||||
if (saveBtn) { saveBtn.disabled = false; saveBtn.textContent = "저장"; }
|
||||
if (saveBtn) saveBtn.disabled = false;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user