mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
feat(ui): enhance tag hover states and adjust toggle switch alignment
- Improve tag chip hover states in TagsModal with contextual colors for include/exclude modes - Adjust toggle switch thumb vertical alignment in LicenseSection and LoraRandomizerSettingsView - Remove debug console.log from loras widget value update
This commit is contained in:
@@ -140,8 +140,33 @@ const toggleTag = (tag: string) => {
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.tag-chip:hover {
|
||||
border-color: var(--fg-color, #fff);
|
||||
/* Default hover (gray for neutral) */
|
||||
.tag-chip:hover:not(.tag-chip--selected) {
|
||||
border-color: rgba(226, 232, 240, 0.5);
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
/* Include variant hover - blue tint */
|
||||
.tags-modal--include .tag-chip:hover:not(.tag-chip--selected) {
|
||||
border-color: rgba(66, 153, 225, 0.4);
|
||||
background: rgba(66, 153, 225, 0.08);
|
||||
}
|
||||
|
||||
/* Exclude variant hover - red tint */
|
||||
.tags-modal--exclude .tag-chip:hover:not(.tag-chip--selected) {
|
||||
border-color: rgba(239, 68, 68, 0.4);
|
||||
background: rgba(239, 68, 68, 0.08);
|
||||
}
|
||||
|
||||
/* Selected chips hover - slightly deepen the color */
|
||||
.tags-modal--include .tag-chip--selected:hover {
|
||||
background: rgba(66, 153, 225, 0.25);
|
||||
border-color: rgba(66, 153, 225, 0.7);
|
||||
}
|
||||
|
||||
.tags-modal--exclude .tag-chip--selected:hover {
|
||||
background: rgba(239, 68, 68, 0.25);
|
||||
border-color: rgba(239, 68, 68, 0.7);
|
||||
}
|
||||
|
||||
/* Include variant - blue when selected */
|
||||
|
||||
@@ -110,7 +110,7 @@ defineEmits<{
|
||||
|
||||
.toggle-switch__thumb {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
top: 3px;
|
||||
left: 2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
|
||||
@@ -368,7 +368,7 @@ const areLorasEqual = (a: LoraEntry[] | null, b: LoraEntry[] | null): boolean =>
|
||||
|
||||
.toggle-switch__thumb {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
top: 3px;
|
||||
left: 2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
|
||||
Reference in New Issue
Block a user