Przeglądaj źródła

Fixed simpleMDE size

Toby Chui 2 tygodni temu
rodzic
commit
2aaca0afad
1 zmienionych plików z 8 dodań i 4 usunięć
  1. 8 4
      sd_card/www/admin/posteng/new.html

+ 8 - 4
sd_card/www/admin/posteng/new.html

@@ -20,10 +20,11 @@
         height: auto;
     }
 
-    .CodeMirror {
-        resize: vertical; /* Allows vertical resizing */
-        overflow: auto;  /* Ensures scrollbars appear if content overflows */
-        min-height: 200px; /* Optional: Set a minimum height */
+    .CodeMirror,
+    .CodeMirror-scroll {
+        height: 520px !important;
+        min-height: 520px !important;
+        max-height: 520px !important;
     }
 
     .file-item.selected {
@@ -125,6 +126,9 @@
             ]
         });
 
+        // Allow vertical resize for the editor
+        document.getElementById("editor").style.resize = "vertical";
+
         /*
             Media Selector