added min width to condition editor
This commit is contained in:
1 parent
f2bea3c33c
commit
c4ba65bd8e
2 files changed
+18
-1
No files matched your search
@@ -105,3 +105,7 @@
|
|||||||
top: 0;
|
top: 0;
|
||||||
left: 0.2em;
|
left: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.condition-node--time-editor--ba .condition-node--time-editor--weekday {
|
||||||
|
min-width: 8em;
|
||||||
|
}
|
||||||
@@ -317,8 +317,10 @@ export const TimeEditor: Editor<TimeCondition> = ({ onChange, condition }) => {
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className="condition-node--time-editor--ba" key={show}>
|
||||||
|
<b className="label">{prettyName(show)}</b>
|
||||||
<InputAutoComplete
|
<InputAutoComplete
|
||||||
|
className="condition-node--time-editor--weekday"
|
||||||
label="Weekday"
|
label="Weekday"
|
||||||
value={condition.weekday ?? []}
|
value={condition.weekday ?? []}
|
||||||
multiple={true}
|
multiple={true}
|
||||||
@@ -342,6 +344,17 @@ export const TimeEditor: Editor<TimeCondition> = ({ onChange, condition }) => {
|
|||||||
}
|
}
|
||||||
options={["mon", "tue", "wed", "thu", "fri", "sat", "sun"]}
|
options={["mon", "tue", "wed", "thu", "fri", "sat", "sun"]}
|
||||||
/>
|
/>
|
||||||
|
<Button
|
||||||
|
className="remove"
|
||||||
|
onClick={() => {
|
||||||
|
setShows(shows.filter((k) => k !== show));
|
||||||
|
const upd = { ...condition };
|
||||||
|
delete upd[show];
|
||||||
|
onChange({ ...upd });
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<RemoveCircle />
|
||||||
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user