Skip to content

Commit 93c5170

Browse files
committed
refactor: enhance layout of edit YAML button in NodeDetails component
1 parent 486a2c2 commit 93c5170

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

src/components/ClusterNodes/NodeDetails.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -820,18 +820,24 @@ const NodeDetails = ({ addTab, lowercaseKindToResourceGroupMap, updateTabUrl }:
820820
if (selectedTab.id === getSanitizedNodeTabId(NODE_DETAILS_TABS.yaml)) {
821821
if (!isEdit) {
822822
return (
823-
<Button
824-
dataTestId="edit-yaml"
825-
variant={ButtonVariantType.text}
826-
size={ComponentSizeType.small}
827-
text="Edit YAML"
828-
onClick={setYAMLEdit}
829-
startIcon={<Icon name="ic-pencil" color={null} />}
830-
/>
823+
<div className="flexbox dc__align-items-center dc__gap-12">
824+
<div className="dc__divider h-16" />
825+
826+
<Button
827+
dataTestId="edit-yaml"
828+
variant={ButtonVariantType.text}
829+
size={ComponentSizeType.small}
830+
text="Edit YAML"
831+
onClick={setYAMLEdit}
832+
startIcon={<Icon name="ic-pencil" color={null} />}
833+
/>
834+
</div>
831835
)
832836
}
833837
return (
834838
<div className="flexbox dc__align-items-center dc__gap-12">
839+
<div className="dc__divider h-16" />
840+
835841
<Button
836842
dataTestId={isReviewState ? 'apply-changes' : 'review-changes'}
837843
variant={ButtonVariantType.text}

0 commit comments

Comments
 (0)