From 1220cb42bb81d6c245fdcf0a55f05107158a20d7 Mon Sep 17 00:00:00 2001 From: cskwork <76669236+cskwork@users.noreply.github.com> Date: Wed, 11 Nov 2026 10:09:39 +0900 Subject: [PATCH] =?UTF-8?q?fix(todo):=20=ED=8E=BC=EC=B9=A8=EB=A9=B4?= =?UTF-8?q?=EC=97=90=EC=84=9C=20=EA=B8=80=EC=9E=90=20=EC=82=AC=EC=9D=B4?= =?UTF-8?q?=EA=B0=80=20=EB=B2=8C=EC=96=B4=EC=A7=80=EB=8D=98=20=EC=96=91?= =?UTF-8?q?=EC=AA=BD=20=EB=A7=9E=EC=B6=A4=20=EC=A0=9C=EA=B1=B0=20(v2.25.1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 넓은 창의 두 쪽 펼침면은 egui columns로 만드는데, egui는 각 열을 양쪽 맞춤(top_down_justified) 배치로 만들고 Label은 그 배치를 따라 줄바꿈된 글을 양쪽 맞춤한다. 그래서 두 쪽의 글이 단어 사이가 늘어나고, 긴 토큰 앞 줄은 '원 문 유 지 · 별 도 U T F - 8'처럼 글자마다 벌어졌다. 이제 각 쪽의 내용을 왼쪽 정렬 top_down 배치 안에 그려 한 쪽 화면처럼 오른쪽이 들쭉날쭉하게 읽힌다. 질문·AI 권장 상자와 입력란은 그대로 쪽 너비를 채우고, 쪽 위에 바로 놓인 버튼(설명 붙은 선택지·승인·자가 조치)은 한 쪽 화면처럼 글자 너비가 된다. 목록 탭은 한 줄 행이 잘림 처리라 영향이 없어 그대로 둔다. --- VERSION | 2 +- log/changelog-v2.25.1.md | 17 +++++++++++++++++ todo/app/src/main.rs | 17 ++++++++++++----- 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 log/changelog-v2.25.1.md diff --git a/VERSION b/VERSION index 5c18f91..d6af7e3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.25.0 +2.25.1 diff --git a/log/changelog-v2.25.1.md b/log/changelog-v2.25.1.md new file mode 100644 index 0000000..155ac4d --- /dev/null +++ b/log/changelog-v2.25.1.md @@ -0,0 +1,17 @@ +# 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`. diff --git a/todo/app/src/main.rs b/todo/app/src/main.rs index b509333..0fac39a 100644 --- a/todo/app/src/main.rs +++ b/todo/app/src/main.rs @@ -535,11 +535,18 @@ impl App { let [left, right] = pages else { return }; left.spacing_mut().item_spacing.x = spacing; right.spacing_mut().item_spacing.x = spacing; - heading(left, p, dark, lang, item); - self.details(left, ctx, p, item, busy, artifact, Part::Read); - right.label(RichText::new(t(lang, "page.answer")).color(p.muted).size(12.0)); - right.add_space(4.0); - self.details(right, ctx, p, item, busy, artifact, Part::Act); + // Columns are justified, which stretches every wrapped line edge to edge (letter by letter before a long + // token); a page reads ragged-right like the single page, and its widgets keep the single page's widths. + let page = Layout::top_down(Align::LEFT); + left.with_layout(page, |left| { + heading(left, p, dark, lang, item); + self.details(left, ctx, p, item, busy, artifact, Part::Read); + }); + right.with_layout(page, |right| { + right.label(RichText::new(t(lang, "page.answer")).color(p.muted).size(12.0)); + right.add_space(4.0); + self.details(right, ctx, p, item, busy, artifact, Part::Act); + }); }); // The fold between the two pages. let rect = ui.min_rect();