Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move apply stat button from far right to the left so it doesnt cover… #55

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading