fixes for editFile

This commit is contained in:
Ryan
2025-02-22 22:53:02 -05:00
committed by GitHub
parent 19c0f692e7
commit 04fd2c5021

View File

@@ -105,7 +105,7 @@
width: 80vw;
max-width: 90vw;
min-width: 400px;
height: 400px;
height: 600px;
max-height: 80vh;
overflow: auto;
resize: both;
@@ -439,7 +439,7 @@
modal.classList.add("modal", "editor-modal");
modal.innerHTML = `
<h3>Editing: ${fileName}</h3>
<textarea id="fileEditor" style="width:100%; height:60%; resize:none;">${content}</textarea>
<textarea id="fileEditor" style="width:100%; height:80%; resize:none;">${content}</textarea>
<div style="margin-top:10px; text-align:right;">
<button onclick="saveFile('${fileName}')" class="btn btn-primary">Save</button>
<button onclick="document.getElementById('editorContainer').remove()" class="btn btn-secondary">Close</button>