diff options
author | geireann <geireann.lindfield@gmail.com> | 2021-08-26 13:49:18 -0400 |
---|---|---|
committer | geireann <geireann.lindfield@gmail.com> | 2021-08-26 13:49:18 -0400 |
commit | 563eee276316097d11d0c3bc13b6917610053e4f (patch) | |
tree | d5cf54f4acfbf64bbd18585f3e303d1c8f2ec05b /src/client/views/nodes/button/FontIconBox.tsx | |
parent | 702ba59ac0235e24121ffff9fcca7c35717867ab (diff) |
changes
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
-rw-r--r-- | src/client/views/nodes/button/FontIconBox.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx index 745a85b21..7b11791b5 100644 --- a/src/client/views/nodes/button/FontIconBox.tsx +++ b/src/client/views/nodes/button/FontIconBox.tsx @@ -336,7 +336,9 @@ export class FontIconBox extends DocComponent<ButtonProps, FontIconDocument>(Fon if (script === "setStrokeColor"){ stroke = true; const checkWidth = ScriptField.MakeScript("setStrokeWidth(0, true)")?.script.run().result; - strokeIcon = (<div style={{borderRadius: "100%", width: Number(checkWidth)+'%', height: Number(checkWidth)+'%', backgroundColor: boolResult }}/>) + const width = 20 + (checkWidth / 100) * 70; + const height = 20 + (checkWidth / 100) * 70; + strokeIcon = (<div style={{borderRadius: "100%", width: width+'%', height: height+'%', backgroundColor: boolResult ? boolResult : "#FFFFFF" }}/>) } const colorOptions: string[] = ['#D0021B', '#F5A623', '#F8E71C', '#8B572A', '#7ED321', '#417505', |