sedrick-keh-tri commited on
Commit
278d3ee
·
1 Parent(s): ce4f901
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -134,13 +134,19 @@ css = """
134
  table-layout: fixed !important;
135
  }
136
 
137
- /* Prevent editing - make cells read-only */
138
  table input,
139
  table textarea {
140
- pointer-events: none !important;
141
  background-color: transparent !important;
142
  border: none !important;
143
  cursor: text !important;
 
 
 
 
 
 
 
144
  }
145
  """
146
 
 
134
  table-layout: fixed !important;
135
  }
136
 
137
+ /* Prevent editing - make cells read-only but allow selection */
138
  table input,
139
  table textarea {
 
140
  background-color: transparent !important;
141
  border: none !important;
142
  cursor: text !important;
143
+ user-select: text !important;
144
+ }
145
+
146
+ /* Make cells read-only by preventing editing on focus */
147
+ table input:focus,
148
+ table textarea:focus {
149
+ outline: none !important;
150
  }
151
  """
152