Skip to content

Commit

Permalink
move apply stat button from far right to the left so it doesnt cover…
Browse files Browse the repository at this point in the history
… up the first line of json file

closes(44)
  • Loading branch information
Pewillia committed Oct 23, 2024
1 parent cfc7b5f commit ffac7d4
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/components/ConfigTextEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,6 @@ export function ConfigTextEditor() {
>
<Box sx={modalContentStyle}>
<Box className="config-editor" sx={{ position: 'relative' }}>
<Box sx={{ position: 'absolute', top: 5, left: 10 }}>
<Button variant="contained" color="primary" size="small" onClick={handleApplyStateToConfigFile}>
Apply State to Config File
</Button>
</Box>
<Box sx={{ position: 'absolute', top: 5, right: 10 }}>
<CopyToClipboardButton textToCopy={editorText} />
</Box>
<div className="line-numbers">
{generateArray(numberOfLines).map((lineNumber) => (
<span key={lineNumber}></span>
Expand All @@ -130,6 +122,12 @@ export function ConfigTextEditor() {
></textarea>
</Box>
<Box sx={{ display: 'flex', justifyContent: 'center', mt: 2, gap: 2 }}>
<Button variant="contained" color="primary" size="small" onClick={handleApplyStateToConfigFile}>
Apply State to Config File
</Button>
<Box >
<CopyToClipboardButton textToCopy={editorText} />
</Box>
<Button variant="contained" color="primary" onClick={validateText} disabled={!isEditorTouched}>
Validate
</Button>
Expand Down

0 comments on commit ffac7d4

Please sign in to comment.