fix(733-3): 중복 찾기 창 — 꼬리표 배지 늘어남 · 합치기 단추 크기 · 그새 바뀜 토스트 글
- 묶음 머리 이름 칸 CSS 가 배지(span)까지 늘리던 것 — 이름 칸 class 로 좁힘 - [합치기] = 기본 단추 크기 · 판 다름 409 = 「그새 바뀜 — 다시 찾음」만(HTTP 409 꼬리 뺌) 뒤 다시 찾음 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.m02-same__head > span {
|
||||
.m02-same__name {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -154,11 +154,11 @@ export function openLibrarySame(opt: SameOptions): void {
|
||||
opt.changed();
|
||||
draw();
|
||||
} catch (error) {
|
||||
showToast(
|
||||
error instanceof StaleError ? `${tx("Stale")} — ${why(error)}` : why(error),
|
||||
"error",
|
||||
);
|
||||
if (error instanceof StaleError) void load();
|
||||
// 판 다름(409 · 서버 몸 = {stale, 판}) = 까닭 글 없음 → 「그새 바뀜」만
|
||||
const text = why(error);
|
||||
const stale = error instanceof StaleError;
|
||||
showToast(stale && text.startsWith("HTTP") ? tx("Stale") : text, "error");
|
||||
if (stale) void load();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -240,7 +240,6 @@ export function openLibrarySame(opt: SameOptions): void {
|
||||
};
|
||||
const mergeButton = createButton({
|
||||
label: tx("Merge"),
|
||||
size: "sm",
|
||||
onClick: () => void merge(group, keep),
|
||||
});
|
||||
const tag = group.꼬리표 === "수량만 다름" ? tx("QtyOnly") : tx("Same");
|
||||
@@ -248,7 +247,10 @@ export function openLibrarySame(opt: SameOptions): void {
|
||||
className: "m02-same__head",
|
||||
children: [
|
||||
createBadge(tag, group.꼬리표 === "수량만 다름" ? "warning" : "info"),
|
||||
el("span", { text: `${group.문서[0].이름} · ${group.문서.length}` }),
|
||||
el("span", {
|
||||
className: "m02-same__name",
|
||||
text: `${group.문서[0].이름} · ${group.문서.length}`,
|
||||
}),
|
||||
mergeButton,
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user