mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-10-27 11:41:58 -06:00
Adjust assembly editor action layout and widths
This commit is contained in:
@@ -629,12 +629,32 @@ export default function AssemblyEditor({
|
|||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box sx={{ display: "flex", alignItems: "center", gap: 2, mb: 0, flexWrap: "wrap" }}>
|
<Box
|
||||||
<Box sx={{ flex: 1 }}>
|
sx={{
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "flex-start",
|
||||||
|
justifyContent: "space-between",
|
||||||
|
gap: 2,
|
||||||
|
mb: 0,
|
||||||
|
flexWrap: "wrap"
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Box sx={{ flex: "1 1 auto", minWidth: 120 }}>
|
||||||
<Typography variant="caption" sx={SECTION_TITLE_SX}>
|
<Typography variant="caption" sx={SECTION_TITLE_SX}>
|
||||||
Overview
|
Overview
|
||||||
</Typography>
|
</Typography>
|
||||||
</Box>
|
</Box>
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
display: "flex",
|
||||||
|
alignItems: "center",
|
||||||
|
gap: 1.5,
|
||||||
|
flexWrap: "wrap",
|
||||||
|
justifyContent: "flex-end",
|
||||||
|
ml: { xs: 0, sm: "auto" },
|
||||||
|
alignSelf: "flex-start"
|
||||||
|
}}
|
||||||
|
>
|
||||||
{currentPath ? (
|
{currentPath ? (
|
||||||
<Tooltip title="Rename File">
|
<Tooltip title="Rename File">
|
||||||
<Button
|
<Button
|
||||||
@@ -679,6 +699,7 @@ export default function AssemblyEditor({
|
|||||||
{saving ? "Saving..." : "Save Assembly"}
|
{saving ? "Saving..." : "Save Assembly"}
|
||||||
</Button>
|
</Button>
|
||||||
</Box>
|
</Box>
|
||||||
|
</Box>
|
||||||
|
|
||||||
<Grid container spacing={2}>
|
<Grid container spacing={2}>
|
||||||
<Grid item xs={12} md={6}>
|
<Grid item xs={12} md={6}>
|
||||||
@@ -792,7 +813,10 @@ export default function AssemblyEditor({
|
|||||||
label="Site Scope"
|
label="Site Scope"
|
||||||
value={siteScopeValue}
|
value={siteScopeValue}
|
||||||
onChange={(e) => updateSitesMode(e.target.value)}
|
onChange={(e) => updateSitesMode(e.target.value)}
|
||||||
sx={{ ...SELECT_BASE_SX, flex: 1 }}
|
sx={{
|
||||||
|
...SELECT_BASE_SX,
|
||||||
|
width: { xs: "100%", sm: 320, lg: 360 }
|
||||||
|
}}
|
||||||
SelectProps={{ MenuProps: MENU_PROPS }}
|
SelectProps={{ MenuProps: MENU_PROPS }}
|
||||||
>
|
>
|
||||||
<MenuItem value="all">All Sites</MenuItem>
|
<MenuItem value="all">All Sites</MenuItem>
|
||||||
@@ -805,7 +829,10 @@ export default function AssemblyEditor({
|
|||||||
label="Allowed Sites"
|
label="Allowed Sites"
|
||||||
value={selectedSiteValues}
|
value={selectedSiteValues}
|
||||||
onChange={(e) => updateSelectedSites(Array.isArray(e.target.value) ? e.target.value : [])}
|
onChange={(e) => updateSelectedSites(Array.isArray(e.target.value) ? e.target.value : [])}
|
||||||
sx={{ ...SELECT_BASE_SX, flex: 1 }}
|
sx={{
|
||||||
|
...SELECT_BASE_SX,
|
||||||
|
width: { xs: "100%", sm: 360, lg: 420 }
|
||||||
|
}}
|
||||||
SelectProps={{
|
SelectProps={{
|
||||||
multiple: true,
|
multiple: true,
|
||||||
renderValue: (selected) => {
|
renderValue: (selected) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user