Skip to content

UI: compact + danger styling for catalog row buttons#92

Merged
guycorbaz merged 1 commit into
mainfrom
fix/compact-danger-row-buttons
Jun 9, 2026
Merged

UI: compact + danger styling for catalog row buttons#92
guycorbaz merged 1 commit into
mainfrom
fix/compact-danger-row-buttons

Conversation

@guycorbaz

Copy link
Copy Markdown
Owner

Follow-up to the row-layout fix: the Modifier / Supprimer buttons on the Cultures & Lieux rows were full-size and both neutral-coloured.

  • Adds two reusable flags to SecondaryButton: compact (34px tall, smaller min-width + label font) and danger (red text + border).
  • Row actions (Modifier / Supprimer on crops, varieties, locations) are now compact, and every Supprimer is red so it reads as destructive.
  • Form-level buttons (Annuler, etc.) keep the regular size.

Slint-only styling change.

🤖 Generated with Claude Code

The Modifier/Supprimer buttons on the Cultures/Lieux rows were full-size
(48px tall, 120px min-width) and both neutral-coloured. Add two reusable
flags to SecondaryButton — `compact` (smaller height/width/font) and `danger`
(red text + border) — and apply them to the row actions: list actions are now
compact, and every Supprimer is red so it reads as destructive. Form-level
buttons (Annuler, etc.) keep the regular size.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@guycorbaz guycorbaz merged commit a366e30 into main Jun 9, 2026
5 checks passed
@guycorbaz guycorbaz deleted the fix/compact-danger-row-buttons branch June 9, 2026 16:28
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