Tuan Nguyen 1 год назад
Родитель
Сommit
abd9162140
2 измененных файлов с 5 добавлено и 3 удалено
  1. 1 1
      app.py
  2. 4 2
      static/style.css

+ 1 - 1
app.py

@@ -116,7 +116,7 @@ def run_theta_rho_file(file_path):
     reset_theta()
                 
 def reset_theta():
-    ser.write(b"RESET_THETA\n")
+    ser.write("RESET_THETA\n".encode())
     while True:
         if ser.in_waiting > 0:
             response = ser.readline().decode().strip()

+ 4 - 2
static/style.css

@@ -138,8 +138,10 @@ li.selected {
     border-top: 1px solid #ddd;
     padding: 10px;
     max-height: 150px;
-    overflow-y: auto;
+    overflow-y: scroll; /* Use scroll explicitly */
     box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
+    -webkit-overflow-scrolling: touch; /* Enables smooth scrolling on mobile */
+    touch-action: auto; /* Ensures touch gestures are handled properly */
 }
 
 
@@ -188,6 +190,6 @@ li.selected {
     }
 
     #status_log {
-        max-height: 300px;
+        max-height: 250px;
     }
 }