mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-08-31 12:48:10 +00:00
feat(fleet): reorder Overview toolbar actions so Add node sits far right (#1381)
Swap the trailing action buttons in the Fleet Overview toolbar so Check Updates sits between the view-mode toggle and Add node, with Add node anchored at the far right edge.
This commit is contained in:
@@ -255,13 +255,6 @@ export function OverviewToolbar({
|
|||||||
className="ml-auto shrink-0 shadow-card-bevel"
|
className="ml-auto shrink-0 shadow-card-bevel"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{onAddNode && (
|
|
||||||
<Button size="sm" className="gap-1.5 shrink-0 h-9" onClick={onAddNode}>
|
|
||||||
<Plus className="w-4 h-4" strokeWidth={1.5} />
|
|
||||||
Add node
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{onCheckUpdates && (
|
{onCheckUpdates && (
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
@@ -274,6 +267,13 @@ export function OverviewToolbar({
|
|||||||
Check Updates
|
Check Updates
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{onAddNode && (
|
||||||
|
<Button size="sm" className="gap-1.5 shrink-0 h-9" onClick={onAddNode}>
|
||||||
|
<Plus className="w-4 h-4" strokeWidth={1.5} />
|
||||||
|
Add node
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user