GSMEthesis commited on
Commit
b3d965c
·
verified ·
1 Parent(s): 7497262

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -10
app.py CHANGED
@@ -721,16 +721,26 @@ h3 {
721
  line-height: 1.8 !important;
722
  }
723
 
724
- /* در بخش CSS این کد را اضافه کنید */
725
- [data-testid="stAppViewContainer"] .stButton>button,
726
- [data-testid="stAppViewContainer"] [data-testid="baseButton-primary"],
727
- [data-testid="stAppViewContainer"] [data-testid="baseButton-secondary"],
728
- [data-testid="stAppViewContainer"] .stFormSubmitButton>button,
729
- [data-testid="stAppViewContainer"] .accept-btn,
730
- [data-testid="stAppViewContainer"] .reject-btn {
731
- margin-bottom: 0 !important; /* حذف حاشیه پایین */
732
- margin-top: 0 !important; /* تنظیم حاشیه بالا */
733
- /* سایر استایل‌های خاص دکمه */
 
 
 
 
 
 
 
 
 
 
734
  }
735
  </style>
736
  """, unsafe_allow_html=True)
 
721
  line-height: 1.8 !important;
722
  }
723
 
724
+ /* ======== Reset کامل margin برای تمام دکمه‌ها ======== */
725
+ [data-testid="stButton"] > button,
726
+ [data-testid="baseButton-primary"],
727
+ [data-testid="baseButton-secondary"],
728
+ .stButton > button,
729
+ .stFormSubmitButton > button,
730
+ .stDownloadButton > button,
731
+ .stActionButton > button {
732
+ margin: 0 !important; /* حذف تمام margin ها */
733
+ margin-top: 0 !important;
734
+ margin-bottom: 0 !important;
735
+ margin-left: 0 !important;
736
+ margin-right: 0 !important;
737
+ padding: 10px 20px !important; /* حفظ padding داخلی */
738
+ }
739
+
740
+ /* حذف margin برای container دکمه‌ها */
741
+ [data-testid="stHorizontalBlock"] > div > div > div > button,
742
+ [data-testid="stVerticalBlock"] > div > div > button {
743
+ margin: 0 !important;
744
  }
745
  </style>
746
  """, unsafe_allow_html=True)