mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-27 01:41:58 -06:00
Reposition variable description and required controls
This commit is contained in:
@@ -944,6 +944,22 @@ export default function AssemblyEditor({
|
|||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</Box>
|
</Box>
|
||||||
|
<Box sx={{ flex: { xs: "1 1 100%", lg: "0 1 28%" }, minWidth: { lg: 220 } }}>
|
||||||
|
<Tooltip
|
||||||
|
title="Instruct the operator in why this variable exists and how to set it appropriately."
|
||||||
|
arrow
|
||||||
|
placement="top-start"
|
||||||
|
>
|
||||||
|
<TextField
|
||||||
|
label="Description"
|
||||||
|
value={variable.description}
|
||||||
|
onChange={(e) => updateVariable(variable.id, { description: e.target.value })}
|
||||||
|
fullWidth
|
||||||
|
variant="outlined"
|
||||||
|
sx={INPUT_BASE_SX}
|
||||||
|
/>
|
||||||
|
</Tooltip>
|
||||||
|
</Box>
|
||||||
<Box sx={{ flex: { xs: "1 1 100%", lg: "0 1 18%" }, minWidth: { lg: 160 } }}>
|
<Box sx={{ flex: { xs: "1 1 100%", lg: "0 1 18%" }, minWidth: { lg: 160 } }}>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title="This defines the type of variable data the script should expect."
|
title="This defines the type of variable data the script should expect."
|
||||||
@@ -1012,26 +1028,6 @@ export default function AssemblyEditor({
|
|||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
</Box>
|
</Box>
|
||||||
<Box
|
|
||||||
sx={{
|
|
||||||
flex: { xs: "1 1 100%", lg: "0 0 110px" },
|
|
||||||
minWidth: { lg: 110 },
|
|
||||||
display: "flex",
|
|
||||||
alignItems: "center",
|
|
||||||
justifyContent: "center",
|
|
||||||
gap: 1
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Typography variant="caption" sx={{ color: "#9ba3b4", fontSize: "0.75rem" }}>
|
|
||||||
Required
|
|
||||||
</Typography>
|
|
||||||
<Checkbox
|
|
||||||
checked={Boolean(variable.required)}
|
|
||||||
onChange={(e) => updateVariable(variable.id, { required: e.target.checked })}
|
|
||||||
sx={{ color: "#58a6ff", p: 0.5 }}
|
|
||||||
inputProps={{ "aria-label": "Required" }}
|
|
||||||
/>
|
|
||||||
</Box>
|
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
flex: { xs: "1 1 100%", lg: "0 0 auto" },
|
flex: { xs: "1 1 100%", lg: "0 0 auto" },
|
||||||
@@ -1055,21 +1051,24 @@ export default function AssemblyEditor({
|
|||||||
gap: { xs: 2, lg: 1.5 }
|
gap: { xs: 2, lg: 1.5 }
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Box sx={{ flex: { xs: "1 1 100%", lg: "0 1 50%" }, minWidth: { lg: 260 } }}>
|
<Box
|
||||||
<Tooltip
|
sx={{
|
||||||
title="Instruct the operator in why this variable exists and how to set it appropriately."
|
flex: { xs: "1 1 100%", lg: "0 1 50%" },
|
||||||
arrow
|
minWidth: { lg: 220 },
|
||||||
placement="top-start"
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
gap: 1.5
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<TextField
|
<Typography variant="caption" sx={{ color: "#9ba3b4", fontSize: "0.75rem" }}>
|
||||||
label="Description"
|
Required
|
||||||
value={variable.description}
|
</Typography>
|
||||||
onChange={(e) => updateVariable(variable.id, { description: e.target.value })}
|
<Checkbox
|
||||||
fullWidth
|
checked={Boolean(variable.required)}
|
||||||
variant="outlined"
|
onChange={(e) => updateVariable(variable.id, { required: e.target.checked })}
|
||||||
sx={INPUT_BASE_SX}
|
sx={{ color: "#58a6ff", p: 0.5 }}
|
||||||
|
inputProps={{ "aria-label": "Required" }}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|||||||
Reference in New Issue
Block a user