QIDNLF commited on
Commit
83cd553
·
verified ·
1 Parent(s): 1e38aeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -546,8 +546,7 @@ with gr.Blocks() as demo:
546
  base_standard = gr.Dropdown(label="Standard")
547
  base_version = gr.Dropdown(label="Version")
548
 
549
- # ⬇️ [최적의 위치] Category와 초기화 버튼을 한 줄(Row)로 묶어버립니다!
550
- with gr.Row():
551
  base_category = gr.Dropdown(label="Category", scale=4) # 4의 비율로 넓게
552
  base_reset_btn = gr.Button("↺ 초기화", scale=1) # 1의 비율로 좁게 (오른쪽에 착착!)
553
 
@@ -556,8 +555,7 @@ with gr.Blocks() as demo:
556
  comp_standard = gr.Dropdown(label="Standard", choices=[])
557
  comp_version = gr.Dropdown(label="Version", choices=[])
558
 
559
- # ⬇️ [최적의 위치] 여기도 동일하게 적용!
560
- with gr.Row():
561
  comp_category = gr.Dropdown(label="Category", choices=[], scale=4)
562
  comp_reset_btn = gr.Button("↺ 초기화", scale=1)
563
 
@@ -595,9 +593,11 @@ with gr.Blocks() as demo:
595
  # 5. Application Styling (CSS)
596
  # ==========================================
597
  css = """
598
- .reset-row{
599
- align-items:center;
 
600
  }
 
601
  table {
602
  table-layout: auto !important;
603
  width: max-content !important;
 
546
  base_standard = gr.Dropdown(label="Standard")
547
  base_version = gr.Dropdown(label="Version")
548
 
549
+ with gr.Row(elem_classes="reset-row"):
 
550
  base_category = gr.Dropdown(label="Category", scale=4) # 4의 비율로 넓게
551
  base_reset_btn = gr.Button("↺ 초기화", scale=1) # 1의 비율로 좁게 (오른쪽에 착착!)
552
 
 
555
  comp_standard = gr.Dropdown(label="Standard", choices=[])
556
  comp_version = gr.Dropdown(label="Version", choices=[])
557
 
558
+ with gr.Row(elem_classes="reset-row"):
 
559
  comp_category = gr.Dropdown(label="Category", choices=[], scale=4)
560
  comp_reset_btn = gr.Button("↺ 초기화", scale=1)
561
 
 
593
  # 5. Application Styling (CSS)
594
  # ==========================================
595
  css = """
596
+ .reset-row {
597
+ align-items: flex-end !important;
598
+ margin-bottom: 5px !important;
599
  }
600
+
601
  table {
602
  table-layout: auto !important;
603
  width: max-content !important;