fixes for editFile
This commit is contained in:
@@ -105,7 +105,7 @@
|
|||||||
width: 80vw;
|
width: 80vw;
|
||||||
max-width: 90vw;
|
max-width: 90vw;
|
||||||
min-width: 400px;
|
min-width: 400px;
|
||||||
height: 400px;
|
height: 600px;
|
||||||
max-height: 80vh;
|
max-height: 80vh;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
resize: both;
|
resize: both;
|
||||||
@@ -439,7 +439,7 @@
|
|||||||
modal.classList.add("modal", "editor-modal");
|
modal.classList.add("modal", "editor-modal");
|
||||||
modal.innerHTML = `
|
modal.innerHTML = `
|
||||||
<h3>Editing: ${fileName}</h3>
|
<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;">
|
<div style="margin-top:10px; text-align:right;">
|
||||||
<button onclick="saveFile('${fileName}')" class="btn btn-primary">Save</button>
|
<button onclick="saveFile('${fileName}')" class="btn btn-primary">Save</button>
|
||||||
<button onclick="document.getElementById('editorContainer').remove()" class="btn btn-secondary">Close</button>
|
<button onclick="document.getElementById('editorContainer').remove()" class="btn btn-secondary">Close</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user