キャンバス/コードの切り替えが「Canv…」と切れないようにする - #135
Merged
Merged
Conversation
On the 11-inch iPad the canvas/code toggle still truncated after #119: - portrait: "Ca… Co…" and 「キ… コ…」 in the canvas column; - landscape: "Canv…" once a drawing had run. The toolbar caps how wide its trailing items may be. A segmented control allowed to shrink truncates. Pinning it at its own width instead pushed ⟳ and export into a "•••" overflow, and in Japanese took the toggle with them. Removing either toolbar spacer made no difference. The toggle now offers the words, then icons (a scribble and </>), through ViewThatFits. Each form is fixedSize, so neither can be squeezed into an ellipsis. Measured on the simulators and this Mac: - words on the 13-inch landscape in both languages, on the Mac and in the phone's sheet, and in English on the 11-inch landscape; - icons in portrait on both iPads, and for Japanese on the 11-inch landscape. VoiceOver still reads "Canvas" and "Code". Also corrects a claim the film tools made: the transport's step button is "Step Forward", not "Forward". The second "Forward" the first teaser run met was never identified, and the comments and the README now say so.
This was referenced Sep 27, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
キャンバス側のツールバーにある「キャンバス / コード」の切り替えが、iPad で文字が切れていたのを直します。文字が入るときは文字、入らないときはアイコンで出します。
何が起きていたか
11 インチの iPad シミュレータで確かめました。#119 で直したあとも、まだ切れていました。
原因は、ツールバーの右側に置けるボタンの幅に上限があることです。その中で、縮められる切り替えが押し縮められていました。
試したこと
.fixedSize()):文字は切れなくなりますが、縦向きでは ⟳ と書き出しが「•••」の中に隠れました。日本語では切り替えまで隠れ、今より悪くなります。ToolbarSpacer)を外す:伸び縮みする方・固定の方のどちらを外しても、変わりませんでした。ViewThatFits):切れず、ボタンも隠れません → これを採用しました(メンテナが比較画像を見て選択)。変更後
scribble.variable)、コードが「</>」です。VoiceOver では、これまでどおり「Canvas」「Code」と読まれます。11 インチでは、描画のあとも同じ表示のまま(切れない)ことを確かめました。
そのほか
Tools/film/README.mdの誤りを直しました。「1 コマ送りボタンも Forward という名前」と書いていましたが、実際は「Step Forward」です。最初のティーザー撮影で当たった「Forward」という名前の別のボタンは、正体を突き止めていないと書き直しました。App/Views/CLAUDE.mdの キャンバス/コード切り替えが二重のカプセルで描かれる(縦向きではラベルも省略される) #119 の節に、今回分かったことを足しました。確認したこと
swift format lint --strictリリース前に