AlauStone commited on
Commit
d570a49
·
verified ·
1 Parent(s): 1f2696a

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -210,11 +210,13 @@ def inject_custom_css():
210
  }
211
  /* 手机端 popover 居中显示 */
212
  [data-testid="stPopoverBody"] {
213
- left: 50% !important;
214
- right: auto !important;
215
- transform: translateX(-50%) !important;
216
- width: calc(100vw - 2rem) !important;
217
- max-width: 300px !important;
 
 
218
  }
219
  }
220
 
 
210
  }
211
  /* 手机端 popover 居中显示 */
212
  [data-testid="stPopoverBody"] {
213
+ left: 1rem !important;
214
+ right: 1rem !important;
215
+ transform: none !important;
216
+ width: auto !important;
217
+ max-width: calc(100vw - 2rem) !important;
218
+ bottom: auto !important;
219
+ top: auto !important;
220
  }
221
  }
222