zjrwtx commited on
Commit
9a22c3f
·
1 Parent(s): 0e6ad37

redesign log

Browse files
Files changed (1) hide show
  1. owl/webapp_zh.py +15 -3
owl/webapp_zh.py CHANGED
@@ -863,6 +863,17 @@ def create_ui():
863
  background-color: #dc3545;
864
  }
865
 
 
 
 
 
 
 
 
 
 
 
 
866
  @keyframes pulse {
867
  0% { opacity: 1; }
868
  50% { opacity: 0.5; }
@@ -919,12 +930,13 @@ def create_ui():
919
  # 添加日志显示区域
920
  log_display = gr.Textbox(
921
  label="系统日志",
922
- lines=20,
923
- max_lines=50,
924
  interactive=False,
925
  autoscroll=True,
926
  show_copy_button=True,
927
- elem_classes="log-display"
 
928
  )
929
 
930
  with gr.Row():
 
863
  background-color: #dc3545;
864
  }
865
 
866
+ /* 日志显示区域样式 */
867
+ .log-display textarea {
868
+ height: 400px !important;
869
+ max-height: 400px !important;
870
+ overflow-y: auto !important;
871
+ font-family: monospace;
872
+ font-size: 0.9em;
873
+ white-space: pre-wrap;
874
+ line-height: 1.4;
875
+ }
876
+
877
  @keyframes pulse {
878
  0% { opacity: 1; }
879
  50% { opacity: 0.5; }
 
930
  # 添加日志显示区域
931
  log_display = gr.Textbox(
932
  label="系统日志",
933
+ lines=25,
934
+ max_lines=100,
935
  interactive=False,
936
  autoscroll=True,
937
  show_copy_button=True,
938
+ elem_classes="log-display",
939
+ container=True
940
  )
941
 
942
  with gr.Row():