Repository navigation
Four questions about sizing, missing parts, scrollable pages and text layout in prompts #428
|
Thanks for open-sourcing this — it's very approachable for someone without a design background. I'm mainly using the web target, and there are four things I'm not sure about: |
Replies: 2 comments
|
I went through the source for each of these. Taking them in order. The heights are fixed deliberately. In On the missing parts, one is there under a different name and one really is missing. The dropdown is the part labelled Dropdown ( There isn't a scrolling canvas. A screen is one of two presets, phone 412 x 892 or desktop 1280 x 800 ( The prompt drift is the most interesting one. |
|
Thank you, @jsabutis, for going through each of these against the source. That is all accurate, and I am marking it as the answer. @JackAndrew-oss, in short: the fixed heights follow the Material 3 sizes on purpose, the dropdown is the Dropdown part under Inputs, a long page is best split into a few screens, and for text placement, putting the text inside a box, pressing Tidy, and adding a note to the part all help the prompt. Improving how the prompt describes layout is discussed in #408, and your example would be welcome there. |
I went through the source for each of these. Taking them in order.
The heights are fixed deliberately. In
lib/tokens.tsa part only resizes on an axis its spec declares, andbuttonandtopAppBardeclare width only, nosize2. Their heights are chosen values:H = 56, which is the M3 Expressive medium button rather than the 40dp classic filled one, and64 + STATUS_BAR_Hfor the bar, which the web target emits as a plain 64dp anyway. Parts that do declaresize2, likebox,card,mapandnavRail, resize both ways.On the missing parts, one is there under a different name and one really is missing. The dropdown is the part labelled Dropdown (
kind: "select") in the Inputs group: text-field appear…