mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-03-27 15:46:43 +01:00
Fix the centering of sharpness brushes
Fixing a visual glitch that becomes visible when a plugin adds borders to the brushes to make them more visible. See this for context; https://discord.com/channels/1014774730907209781/1058857864954904607/1076694770845487155
This commit is contained in:
parent
e7a2dfa57f
commit
4df9a22dd6
@ -244,8 +244,8 @@ var IMAGE_EDITOR_SECTIONS = [
|
||||
var sub_element = document.createElement("div")
|
||||
sub_element.style.background = `var(--background-color3)`
|
||||
sub_element.style.filter = `blur(${blur_amount}px)`
|
||||
sub_element.style.width = `${size - 4}px`
|
||||
sub_element.style.height = `${size - 4}px`
|
||||
sub_element.style.width = `${size - 2}px`
|
||||
sub_element.style.height = `${size - 2}px`
|
||||
sub_element.style['border-radius'] = `${size}px`
|
||||
element.style.background = "none"
|
||||
element.appendChild(sub_element)
|
||||
|
Loading…
Reference in New Issue
Block a user