stahl/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Markus Zoppelt 6b0e5884c9 feat: a phone layout
On a phone, Stahl shows a slim bar on top, one page at a time, and a tab bar:
Overview, Holdings, Performance, and More, which lists every other page with
search, the guide, the theme and Settings. A selected holding's details take
the table's place. State::compact turns it on; the iOS shell sets it from
UIKit's horizontal size class, so an iPad in a narrow split gets it too.

The pages are the desktop's, made to fit a narrow column: ui::columns takes a
count for wide, medium and narrow, the hero stacks its figures under the total,
an allocation's target takes its own line, and headers wrap. That also fixes
the Policy editor collapsing and Settings' fixed-width fields in a narrow
desktop window. Each page now gets its own scroller, so it opens at its top
instead of where the last page was left.

The iOS shell paints the safe area in the app's background. Every phone
screen has a phone-* scene in examples/demo.rs, rendered at 390x844.
2026-11-07 14:23:41 +01:00
..
demo.rs feat: a phone layout 2026-11-07 14:23:41 +01:00