mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 11:11:53 +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.left = left + "px"
|
||||||
root.style.top = top + "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(
|
addItem(
|
||||||
|
|||||||
Reference in New Issue
Block a user