apply review comments

This commit is contained in:
Johnpaul
2025-11-27 04:18:53 +01:00
parent 51ab1541dd
commit e092986cfd
3 changed files with 6 additions and 5 deletions

View File

@@ -333,7 +333,7 @@ export function useGraphNodeManager(graph: LGraph): GraphNodeManager {
vueNodeData.set(nodeId, updatedData)
} catch (error) {
// Ignore widget update errors to prevent cascade failures
console.error('Error updating widget options:', error)
}
}
@@ -365,7 +365,7 @@ export function useGraphNodeManager(graph: LGraph): GraphNodeManager {
widgets: freshWidgets
})
} catch (error) {
// Ignore refresh errors
console.error('Error refreshing Vue widgets:', error)
}
}

View File

@@ -83,8 +83,8 @@ function handleSelect(value: string | number | boolean) {
'bg-transparent border-none',
'focus:outline-none',
modelValue === option.value
? 'bg-interface-menu-component-surface-selected text-primary'
: 'text-secondary hover:bg-interface-menu-component-surface-hovered'
? 'bg-interface-menu-component-surface-selected text-base-foreground'
: 'text-muted-foreground hover:bg-interface-menu-component-surface-hovered'
)
"
:aria-pressed="modelValue === option.value"

View File

@@ -70,7 +70,8 @@ export const FOR_TESTING = {
WidgetMarkdown,
WidgetSelect,
WidgetTextarea,
WidgetToggleSwitch
WidgetToggleSwitch,
WidgetSelectToggle
} as const
interface WidgetDefinition {