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
@@ -104,4 +104,8 @@
|
||||
position: absolute;
|
||||
top: 0;
|
||||
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 {
|
||||
return (
|
||||
<div>
|
||||
<div className="condition-node--time-editor--ba" key={show}>
|
||||
<b className="label">{prettyName(show)}</b>
|
||||
<InputAutoComplete
|
||||
className="condition-node--time-editor--weekday"
|
||||
label="Weekday"
|
||||
value={condition.weekday ?? []}
|
||||
multiple={true}
|
||||
@@ -342,6 +344,17 @@ export const TimeEditor: Editor<TimeCondition> = ({ onChange, condition }) => {
|
||||
}
|
||||
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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user