Skip to content

fix(todo): 펼침면에서 글자 사이가 벌어지던 양쪽 맞춤 제거 (v2.25.1) - #90

Merged
cskwork merged 1 commit into
mainfrom
fix/todo-spread-justify
Nov 11, 2026
Merged

cskwork merged 1 commit into
mainfrom
fix/todo-spread-justify

Conversation

@cskwork

@cskwork cskwork commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

v2.25.1: The two-page spread reads ragged-right again

To-do app (todo/app) only. The web page, the TUI, the server and todo.md are unchanged.

Problem

On a wide window (960 points or more) a decision opens as a two-page spread, built from egui columns. egui lays each column out justified, and a wrapped label in a justified layout is fully justified: word gaps stretched to the page edge, and a line followed by a long unbreakable token was spread letter by letter (e.g. "원 문 유 지 · 별 도 U T F - 8 서 명 경 로"). The single page on a narrow window was not affected.

Changes

  • Pages are not justified. Each page of the spread lays its content out top-down and left-aligned, as the single page does, so text is ragged-right. The question box, the agent's pick box and the answer fields still fill the page; the gap and the fold between the pages and the heading row are unchanged.
  • Buttons as on the single page. The justified columns also stretched every button that sat directly on a page to the page width (choices stacked over what they do, approve, fix). They now take their label's width, as on the single page.
  • The list tabs are unchanged: their one-line rows are truncated, not wrapped, and the one-column and two-column lists are laid out the same way.

After updating

Rebuild the app: run todo/app/install-macos.sh again (macOS), or cargo build --release in todo/app.

Verification

Run in todo/app on macOS:

  • cargo test: 7 passed, 0 failed.
  • cargo build --release: no warnings.
  • cargo clippy --release: one warning, the existing nonminimal_bool ("this boolean expression can be simplified"); nothing new.
  • Code check against egui 0.31.1: Ui::columns_dyn builds each column with Layout::top_down_justified(Align::LEFT), Label copies horizontal_justify() into LayoutJob::justify, and epaint justifies every wrapped row except the last. Inside Layout::top_down(Align::LEFT) horizontal_justify() is false. Truncated labels (the list rows) set justify = false themselves, which is why the list tabs are left as they are.
  • Screen check: the release build ran against a copy of the to-do list with the window wide enough to open the spread (capture 1920×990 px). The first decision (no choices) shows ragged-right text on the left page; the question box and the agent's pick box fill the page, the answer field fills the right page, and the fold line and heading pill are in place. Not seen on screen: a decision with choices stacked over their notes, an approval, and the long-token line from the problem report, as no such decision was at the front of the copied list and the app was not clicked. No before-fix capture was taken.
  • The Rust app is not built in CI.

넓은 창의 두 쪽 펼침면은 egui columns로 만드는데, egui는 각 열을 양쪽 맞춤(top_down_justified) 배치로 만들고 Label은 그 배치를 따라 줄바꿈된 글을 양쪽 맞춤한다. 그래서 두 쪽의 글이 단어 사이가 늘어나고, 긴 토큰 앞 줄은 '원 문 유 지 · 별 도 U T F - 8'처럼 글자마다 벌어졌다. 이제 각 쪽의 내용을 왼쪽 정렬 top_down 배치 안에 그려 한 쪽 화면처럼 오른쪽이 들쭉날쭉하게 읽힌다. 질문·AI 권장 상자와 입력란은 그대로 쪽 너비를 채우고, 쪽 위에 바로 놓인 버튼(설명 붙은 선택지·승인·자가 조치)은 한 쪽 화면처럼 글자 너비가 된다. 목록 탭은 한 줄 행이 잘림 처리라 영향이 없어 그대로 둔다.
@cskwork
cskwork merged commit 2515e1d into main Nov 11, 2026
3 checks passed
@cskwork
cskwork deleted the fix/todo-spread-justify branch November 11, 2026 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant