mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 14:54:12 +00:00
Fix scaled font blurriness in context menus (#400)
Requires that fonts scale in increments of 0.25.
This commit is contained in:
@@ -194,7 +194,7 @@ export class ContextMenu {
|
||||
root.style.left = left + "px"
|
||||
root.style.top = top + "px"
|
||||
|
||||
if (options.scale) root.style.transform = `scale(${options.scale})`
|
||||
if (options.scale) root.style.transform = `scale(${Math.round(options.scale * 4) * 0.25})`
|
||||
}
|
||||
|
||||
addItem(
|
||||
|
||||
Reference in New Issue
Block a user