mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-13 09:00:16 +00:00
feat: Update workflow menu to allow quick toggling modes (#9436)
## Summary Adds a quick toggle mode button to the workflow menu for users to easier discover & change modes ## Changes - **What**: - remove specific app mode rendering - increase spacing around breadcrumbs menu - add current mode text to menu - add base button variant ## Screenshots (if applicable) <img width="258" height="137" alt="image" src="https://github.com/user-attachments/assets/2ed7b276-c52c-44cd-b107-399f769574af" /> <img width="233" height="172" alt="image" src="https://github.com/user-attachments/assets/2639d30c-2150-4434-a86b-732649c4b142" /> ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9436-feat-Update-workflow-menu-to-allow-quick-toggling-modes-31a6d73d365081b589eee0e03cd6f1de) by [Unito](https://www.unito.io) --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
@@ -20,6 +20,7 @@ export const buttonVariants = cva({
|
||||
'destructive-textonly':
|
||||
'bg-transparent text-destructive-background hover:bg-destructive-background/10',
|
||||
'overlay-white': 'bg-white text-gray-600 hover:bg-white/90',
|
||||
base: 'bg-base-background text-base-foreground hover:bg-secondary-background-hover',
|
||||
gradient:
|
||||
'border-transparent bg-(image:--subscription-button-gradient) text-white hover:opacity-90'
|
||||
},
|
||||
@@ -49,6 +50,7 @@ const variants = [
|
||||
'textonly',
|
||||
'muted-textonly',
|
||||
'destructive-textonly',
|
||||
'base',
|
||||
'overlay-white',
|
||||
'gradient'
|
||||
] as const satisfies Array<ButtonVariants['variant']>
|
||||
|
||||
Reference in New Issue
Block a user