mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-28 04:38:59 +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"
|
||||
/>
|
||||
|
||||
{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 && (
|
||||
<Button
|
||||
variant="outline"
|
||||
@@ -274,6 +267,13 @@ export function OverviewToolbar({
|
||||
Check Updates
|
||||
</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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user