Skip to content

refactor(ui): phase 3 — rangées adaptatives - #17

Merged
tension-atoi merged 1 commit into
refactor/phase-2-themefrom
refactor/phase-3-adaptive
Oct 24, 2026
Merged

tension-atoi merged 1 commit into
refactor/phase-2-themefrom
refactor/phase-3-adaptive

Conversation

@tension-atoi

Copy link
Copy Markdown
Collaborator

Phase 3 du refactor front-end inspiré de Skwir. Empilée sur #16.

Ce qui change

  • Port de AdaptiveRow de Skwir (Apache-2.0, attribution dans l'en-tête du fichier) dans elements::adaptive : une rangée dessinée en plusieurs formes garde la plus riche dont la largeur naturelle tient, mesurée dans prepaint.
  • La barre de requête ne choisit plus sa forme par des seuils (640 / 460 px d'une largeur estimée « fenêtre moins sidebar ») : ses trois formes sont des variantes d'une AdaptiveRow. Elle reste riche tant que la place réelle le permet, quelle que soit la langue ou la police. list_pane_width et effective_sidebar_width disparaissent ; la station ne lit plus du tout la fenêtre.
  • Le test dessine la barre de 1400 à 240 px : les boutons ne font que raccourcir, jusqu'à la forme étroite, et la recherche garde sa place.

Vérification : cargo test → 260 OK.


Generated by Claude Code

- Port Skwir's `AdaptiveRow` (Apache-2.0) into `elements::adaptive`:
  a row drawn in several forms keeps the richest whose natural width fits,
  measured in `prepaint` with the real labels and font.
- The query toolbar's three forms (wide, medium, narrow labels for the
  state and sort buttons) were chosen by `WorkbenchBreakpoint::from_width`
  at 640 and 460 px of a width the station estimated from the window minus
  the sidebar. They are now variants of an `AdaptiveRow`: the toolbar is
  as rich as the room it really has allows, whatever the language, font
  or panel beside it. `list_pane_width` and `effective_sidebar_width` go;
  the station no longer reads the window at all.
- The toolbar test draws the bar from 1400 to 240 px and checks the
  buttons only ever shorten, down to the narrow form, while the search
  field keeps its room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CfvJFUwgYwz6HYiWrec9T
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