فهرست منبع

Increase Line Width

Benjamin Harris 1 ماه پیش
والد
کامیت
9cd12a997a
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      bridge/admin.py
  2. 2 2
      bridge/bridge.py

+ 2 - 2
bridge/admin.py

@@ -1164,7 +1164,7 @@ DISPLAY_HTML = """<!DOCTYPE html>
 
   .display-line {
     font-family: Georgia, 'Times New Roman', serif;
-    font-size: 22px; /*clamp(22px, 8vw, 110px);*/
+    font-size: clamp(22px, 3vw, 44px);
     line-height: 1.25;
     letter-spacing: 0.02em;
     min-height: 1.25em;
@@ -1173,7 +1173,7 @@ DISPLAY_HTML = """<!DOCTYPE html>
   }
 
   .display-line.is-speaker {
-    font-size: 22px; /*clamp(16px, 5.5vw, 72px);*/
+    font-size: clamp(16px, 2.2vw, 32px);
     color: #f5c518;
     font-weight: 700;
     letter-spacing: 0.1em;

+ 2 - 2
bridge/bridge.py

@@ -39,8 +39,8 @@ CHANNELS    = 1
 BLOCKSIZE   = 4096          # ~256 ms per chunk at 16 kHz
 
 SENTENCE_TIMEOUT = 4.0      # seconds of silence before forcing a flush
-MAX_LINE_CHARS   = 38       # characters per line
-DISPLAY_LINES    = 3
+MAX_LINE_CHARS   = 80       # characters per line
+DISPLAY_LINES    = 10
 
 # Set to a device index (integer) to force a specific microphone.
 # Leave as None to use the Windows default input device.