Skip to content

Conversation

@Lokimorty
Copy link
Contributor

@Lokimorty Lokimorty commented Nov 27, 2025

Describe Your Changes

The "Show variants" toggle in Hub uses a Switch component, but toggle is not the right design pattern here. Toggles are for settings that apply immediately—in this context we're just expanding a layout to show more content.

Replaced the Switch with a clickable chevron:

  • Text "Show variants" with chevron icon to the right
  • Entire line is clickable, not just the icon
  • Chevron points down when collapsed, up when expanded
  • Matches styling of other icons in the row (size 18, text-main-view-fg/50 color)

To test it:

  1. Open Hub
  2. Find a model with multiple variants (look for variant count > 1)
  3. Click "Show variants" text or the chevron
  4. Verify the variants list expands and chevron flips to point up
  5. Click again to collapse

Fixes Issues

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

The "Show variants" toggle uses a Switch component, but toggle is not
the right design pattern here. Toggles are for settings that apply
immediately—in this context we're just expanding a layout to show more
content.

Replaced the Switch with a clickable chevron:
- Text "Show variants" with chevron icon to the right
- Entire line is clickable, not just the icon
- Chevron points down when collapsed, up when expanded
- Matches styling of other icons in the row (size 18, text-main-view-fg/50)
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