feat(desktop): propose typo fixes inside the suggestion popup and make suggestions snappier

While suggestions are on, typos are no longer replaced silently. The popup shows
the fix next to the candidate and applies it only when the candidate is accepted.
The per-minute request cap rises from 6 to 20 so suggestions keep appearing after
accepting one and continuing to type.
This commit is contained in:
Yun Chan 2026-10-18 07:06:55 +09:00
parent d63854db67
commit f5ae4c8c04
38 changed files with 1239 additions and 660 deletions

View file

@ -299,3 +299,55 @@ kbd {
line-height: 1;
min-width: 0;
}
/* ── 오타 교정 (후보와 함께 적용된다) — 지운 글자는 취소선, 고친 글자는 강조. 높이 26px 고정 ── */
.correction {
display: flex;
align-items: center;
gap: 6px;
height: 26px;
margin-bottom: 2px;
padding: 0 28px 0 8px;
overflow: hidden;
white-space: nowrap;
font-size: 12px;
color: var(--d3-text-secondary);
}
.correction-label {
flex: 0 0 auto;
padding: 1px 6px;
border-radius: 4px;
background: var(--d3-accent-dim);
color: var(--d3-accent-main);
font-size: 11px;
font-weight: 600;
}
.correction-diff {
overflow: hidden;
text-overflow: ellipsis;
}
.correction del {
color: var(--d3-status-danger);
text-decoration: line-through;
opacity: 0.85;
}
.correction ins {
color: var(--d3-accent-main);
text-decoration: none;
font-weight: 600;
}
.correction-arrow {
margin: 0 3px;
opacity: 0.7;
}
/* 후보 앞에 붙는 고친 글 — 이 글자들로 바뀐 뒤 후보가 이어진다는 표시 */
.suggestion-text .corrected {
color: var(--d3-accent-main);
font-weight: 600;
}