GSMEthesis commited on
Commit
af58b37
·
verified ·
1 Parent(s): a72fd38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -739,7 +739,7 @@ h3 {
739
 
740
  # ========== توابع اصلی ==========
741
  def enhanced_likert_scale(question_data):
742
- """لیکرت اسکیل با خط فرضی، لیبل‌ها کنار، و نقاط دایره‌ای تو یه ردیف"""
743
  question = question_data["question"]
744
  key = question_data["key"]
745
  scale = question_data["scale"]
@@ -798,6 +798,13 @@ def enhanced_likert_scale(question_data):
798
  margin: 0 !important;
799
  padding: 0 !important;
800
  align-items: center !important;
 
 
 
 
 
 
 
801
  }}
802
  div[data-testid="stButton"] > button[key^="streamlit-btn-{key}-"] {{
803
  width: 20px !important;
@@ -808,7 +815,7 @@ def enhanced_likert_scale(question_data):
808
  color: black !important;
809
  font-size: 14px !important;
810
  padding: 0 !important;
811
- margin: 0 !important;
812
  box-shadow: none !important;
813
  outline: none !important;
814
  line-height: 1 !important;
@@ -850,6 +857,12 @@ def enhanced_likert_scale(question_data):
850
  height: 18px !important;
851
  font-size: 12px !important;
852
  }}
 
 
 
 
 
 
853
  }}
854
  /* حذف استایل‌های پیش‌فرض Streamlit */
855
  div[data-testid="stButton"] > button {{
 
739
 
740
  # ========== توابع اصلی ==========
741
  def enhanced_likert_scale(question_data):
742
+ """لیکرت اسکیل با خط فرضی، لیبل‌ها کنار، و نقاط دایره‌ای تو یه ردیف افقی"""
743
  question = question_data["question"]
744
  key = question_data["key"]
745
  scale = question_data["scale"]
 
798
  margin: 0 !important;
799
  padding: 0 !important;
800
  align-items: center !important;
801
+ width: 100% !important;
802
+ }}
803
+ div[data-testid="column"] {{
804
+ display: flex !important;
805
+ flex-wrap: nowrap !important;
806
+ min-width: 0 !important;
807
+ flex: 1 1 auto !important;
808
  }}
809
  div[data-testid="stButton"] > button[key^="streamlit-btn-{key}-"] {{
810
  width: 20px !important;
 
815
  color: black !important;
816
  font-size: 14px !important;
817
  padding: 0 !important;
818
+ margin: 0 auto !important;
819
  box-shadow: none !important;
820
  outline: none !important;
821
  line-height: 1 !important;
 
857
  height: 18px !important;
858
  font-size: 12px !important;
859
  }}
860
+ div[data-testid="column"] {{
861
+ display: flex !important;
862
+ flex-wrap: nowrap !important;
863
+ min-width: 0 !important;
864
+ flex: 1 1 auto !important;
865
+ }}
866
  }}
867
  /* حذف استایل‌های پیش‌فرض Streamlit */
868
  div[data-testid="stButton"] > button {{