Surn commited on
Commit
a27b4fc
·
1 Parent(s): 7f5ea9e
Files changed (1) hide show
  1. battlewords/ui.py +11 -5
battlewords/ui.py CHANGED
@@ -43,7 +43,7 @@ def inject_styles() -> None:
43
  """
44
  <style>
45
  /* Base grid cell visuals */
46
- .bw-row { display: flex; gap: 4px; flex-wrap: nowrap; }
47
  .bw-cell {
48
  width: 100%;
49
  aspect-ratio: 1 / 1;
@@ -78,13 +78,15 @@ def inject_styles() -> None:
78
  width: auto !important;
79
  flex: 1 1 auto !important;
80
  min-width: 0 !important;
81
- max-width: 100% !important;
 
 
 
82
  }
83
-
84
  /* Ensure grid rows generated via st.columns do not wrap and can scroll horizontally. */
85
  .bw-grid-row-anchor + div[data-testid="stHorizontalBlock"] {
86
  flex-wrap: nowrap !important;
87
- overflow-x: auto !important;
88
  }
89
  .bw-grid-row-anchor + div[data-testid="stHorizontalBlock"] > div[data-testid="column"] {
90
  flex: 0 0 auto !important;
@@ -102,7 +104,7 @@ def inject_styles() -> None:
102
  width: 100% !important;
103
  min-width: 100% !important;
104
  max-width: 100% !important;
105
- flex: 1 1 100% !important;
106
  }
107
 
108
  /* Keep grid rows on one line on small screens too */
@@ -110,6 +112,10 @@ def inject_styles() -> None:
110
  flex-wrap: nowrap !important;
111
  overflow-x: auto !important;
112
  }
 
 
 
 
113
  }
114
  </style>
115
  """,
 
43
  """
44
  <style>
45
  /* Base grid cell visuals */
46
+ .bw-row { display: flex; gap: 2px; flex-wrap: nowrap; }
47
  .bw-cell {
48
  width: 100%;
49
  aspect-ratio: 1 / 1;
 
78
  width: auto !important;
79
  flex: 1 1 auto !important;
80
  min-width: 0 !important;
81
+ max-width: 100% !important;
82
+ }
83
+ .st-emotion-cache-1permvm {
84
+ gap:0.25rem !important;
85
  }
 
86
  /* Ensure grid rows generated via st.columns do not wrap and can scroll horizontally. */
87
  .bw-grid-row-anchor + div[data-testid="stHorizontalBlock"] {
88
  flex-wrap: nowrap !important;
89
+ overflow-x: auto !important;
90
  }
91
  .bw-grid-row-anchor + div[data-testid="stHorizontalBlock"] > div[data-testid="column"] {
92
  flex: 0 0 auto !important;
 
104
  width: 100% !important;
105
  min-width: 100% !important;
106
  max-width: 100% !important;
107
+ flex: 1 1 100% !important;
108
  }
109
 
110
  /* Keep grid rows on one line on small screens too */
 
112
  flex-wrap: nowrap !important;
113
  overflow-x: auto !important;
114
  }
115
+ .st-emotion-cache-17i4tbh {
116
+ min-width: calc(8.33333% - 1rem);
117
+ }
118
+
119
  }
120
  </style>
121
  """,