SiangKai commited on
Commit
ee007b4
·
verified ·
1 Parent(s): b19c0f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -736,6 +736,7 @@ custom_css = """
736
  padding: 15px; /* 增加一些內部邊距,讓文字不會貼著邊框 */
737
  border-radius: 8px; /* 圓角效果 */
738
  background: #ffffff !important; /* 設定一個淡淡的背景色,與 Group 區別開 */
 
739
  max-height: 400px; /* 設定最大高度,例如 400px */
740
  overflow-y: auto; /* 當內容超出最大高度時,顯示垂直滾動條 */
741
  box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05); /* 增加一點內陰影,更有層次感 */
@@ -790,6 +791,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="blue", secondary_hue="orange"),
790
  gr.Markdown("### 🧐 查詢結果")
791
 
792
  with gr.Group():
 
793
  output_result = gr.Markdown(
794
  # label="🧐 查詢結果",
795
  # show_label=True,
 
736
  padding: 15px; /* 增加一些內部邊距,讓文字不會貼著邊框 */
737
  border-radius: 8px; /* 圓角效果 */
738
  background: #ffffff !important; /* 設定一個淡淡的背景色,與 Group 區別開 */
739
+ min-height: 120px;
740
  max-height: 400px; /* 設定最大高度,例如 400px */
741
  overflow-y: auto; /* 當內容超出最大高度時,顯示垂直滾動條 */
742
  box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05); /* 增加一點內陰影,更有層次感 */
 
791
  gr.Markdown("### 🧐 查詢結果")
792
 
793
  with gr.Group():
794
+ gr.Markdown("### 🧐 查詢結果")
795
  output_result = gr.Markdown(
796
  # label="🧐 查詢結果",
797
  # show_label=True,