From c4ba65bd8eafbe63ec0e7a565408b5ae8e1d7555 Mon Sep 17 00:00:00 2001 From: Ari Date: Fri, 22 Jul 2022 17:05:52 -0400 Subject: [PATCH] added min width to condition editor --- .../ConditionEditor/ConditionNodeBase.css | 4 ++++ .../components/ConditionEditor/editorRender.tsx | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/webapp/src/components/ConditionEditor/ConditionNodeBase.css b/webapp/src/components/ConditionEditor/ConditionNodeBase.css index 65e6b18..e81b1d9 100644 --- a/webapp/src/components/ConditionEditor/ConditionNodeBase.css +++ b/webapp/src/components/ConditionEditor/ConditionNodeBase.css @@ -104,4 +104,8 @@ position: absolute; top: 0; left: 0.2em; +} + +.condition-node--time-editor--ba .condition-node--time-editor--weekday { + min-width: 8em; } \ No newline at end of file diff --git a/webapp/src/components/ConditionEditor/editorRender.tsx b/webapp/src/components/ConditionEditor/editorRender.tsx index 83240bd..dc38208 100644 --- a/webapp/src/components/ConditionEditor/editorRender.tsx +++ b/webapp/src/components/ConditionEditor/editorRender.tsx @@ -317,8 +317,10 @@ export const TimeEditor: Editor = ({ onChange, condition }) => { ); } else { return ( -
+
+ {prettyName(show)} = ({ onChange, condition }) => { } options={["mon", "tue", "wed", "thu", "fri", "sat", "sun"]} /> +
); }