diff --git a/webapp/src/components/AutomationEditor/AutoInfoBox.css b/webapp/src/components/AutomationEditor/AutoInfoBox.css index b2d39c0..3d70a08 100644 --- a/webapp/src/components/AutomationEditor/AutoInfoBox.css +++ b/webapp/src/components/AutomationEditor/AutoInfoBox.css @@ -15,7 +15,7 @@ } .automation-editor--info-box.show { - min-width: 25em; + min-width: 20em; } .automation-editor--info-box.hide { diff --git a/webapp/src/components/AutomationList/AutomationListBox.tsx b/webapp/src/components/AutomationList/AutomationListBox.tsx index 185bcb8..3dd61f9 100644 --- a/webapp/src/components/AutomationList/AutomationListBox.tsx +++ b/webapp/src/components/AutomationList/AutomationListBox.tsx @@ -161,6 +161,7 @@ const convertGroupsToItems = ( autos={autos} onSelectAutomation={onSelectAutomation} onRemove={onRemove} + selected={selected} /> }) } @@ -173,16 +174,18 @@ const AutomationListBoxGroup: FC<{ autos: Array<[AutomationData, number]>, onSelectAutomation: (i: number) => void, onRemove: (i: number) => void; + selected: number, }> = ({ groupName, groups, autos, onSelectAutomation, onRemove, + selected, }) => { const [open, setOpen] = useState(false); return
setOpen(!open)}>{groupName} {!open ? "⊕" : "⊖"} - {open && convertGroupsToItems(groups, autos, onSelectAutomation, onRemove)} + {open && convertGroupsToItems(groups, autos, onSelectAutomation, onRemove, selected)}
} \ No newline at end of file diff --git a/webapp/src/components/AutomationList/index.css b/webapp/src/components/AutomationList/index.css index ec3d695..5370bd4 100644 --- a/webapp/src/components/AutomationList/index.css +++ b/webapp/src/components/AutomationList/index.css @@ -9,7 +9,6 @@ .automation-list--list { flex: 1; - min-width: 400px; max-width: 400px; position: relative; }