Quellcode durchsuchen

Fixed simpleMDE size

Toby Chui vor 2 Wochen
Ursprung
Commit
2aaca0afad
1 geänderte Dateien mit 8 neuen und 4 gelöschten Zeilen
  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