aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/button/FontIconBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-08-26 14:57:23 -0400
committerbobzel <zzzman@gmail.com>2021-08-26 14:57:23 -0400
commitd4143fcd43c31999761e47536a01a7e2427ae891 (patch)
tree518b434d48db0169c6468992dc3cf4efb3c3c9ef /src/client/views/nodes/button/FontIconBox.tsx
parentdf306cd0f25735747c6124a9a958f8118531fcfd (diff)
parent563eee276316097d11d0c3bc13b6917610053e4f (diff)
Merge branch 'menu_updates_geireann' of https://github.com/brown-dash/Dash-Web into menu_updates_geireann
Diffstat (limited to 'src/client/views/nodes/button/FontIconBox.tsx')
-rw-r--r--src/client/views/nodes/button/FontIconBox.tsx4
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',