Repository navigation
refactor(ui): phase 3 — rangées adaptatives - #17
Merged
Merged
Conversation
- 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
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.
Phase 3 du refactor front-end inspiré de Skwir. Empilée sur #16.
Ce qui change
AdaptiveRowde Skwir (Apache-2.0, attribution dans l'en-tête du fichier) danselements::adaptive: une rangée dessinée en plusieurs formes garde la plus riche dont la largeur naturelle tient, mesurée dansprepaint.AdaptiveRow. Elle reste riche tant que la place réelle le permet, quelle que soit la langue ou la police.list_pane_widtheteffective_sidebar_widthdisparaissent ; la station ne lit plus du tout la fenêtre.Vérification :
cargo test→ 260 OK.Generated by Claude Code