AitBAD commited on
Commit
49a6789
·
verified ·
1 Parent(s): d82cca2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -7
app.py CHANGED
@@ -80,20 +80,26 @@ preview_dpi = st.sidebar.slider("Amerkid n Uskan (DPI)", min_value=150, max_valu
80
  st.markdown(
81
  f"""
82
  <style>
83
- /* Target the text area where the OCR text is edited */
 
84
  textarea[data-testid="stText"] {{
85
  font-size: {font_size}px;
86
- color: #000000; /* Set text color to black for better visibility */
 
87
  line-height: 1.5; /* Improve readability with line spacing */
88
  }}
89
-
90
- /* Target the text inside the download button preview or other standard text elements if needed */
91
  .stTextArea textarea {{
92
  font-size: {font_size}px;
93
- color: #000000; /* Set text color to black */
 
 
94
  }}
95
-
96
- /* Target images specifically within that first column's content div */
 
 
 
97
  section[data-testid="stSidebar"] ~ div > div:has(div[data-testid="stColumn"] > div:nth-child(1)) > div:nth-child(1) img {{
98
  max-width: 100%; /* Ensures image doesn't exceed the column width */
99
  height: auto; /* Maintains aspect ratio when width is constrained */
 
80
  st.markdown(
81
  f"""
82
  <style>
83
+ /* --- Text Area Styling --- */
84
+ /* Target the main text area input field */
85
  textarea[data-testid="stText"] {{
86
  font-size: {font_size}px;
87
+ color: #000000 !important; /* Force black text */
88
+ background-color: #FFFFFF !important; /* Force white background */
89
  line-height: 1.5; /* Improve readability with line spacing */
90
  }}
91
+ /* Target the text area inside stTextArea component */
 
92
  .stTextArea textarea {{
93
  font-size: {font_size}px;
94
+ color: #000000 !important; /* Force black text */
95
+ background-color: #FFFFFF !important; /* Force white background */
96
+ line-height: 1.5;
97
  }}
98
+ /* Target the container of the text area for potential background issues */
99
+ .stTextArea > div > div {{
100
+ background-color: #FFFFFF !important; /* Ensure container background is white */
101
+ }}
102
+ /* --- Image Styling (Kept as is) --- */
103
  section[data-testid="stSidebar"] ~ div > div:has(div[data-testid="stColumn"] > div:nth-child(1)) > div:nth-child(1) img {{
104
  max-width: 100%; /* Ensures image doesn't exceed the column width */
105
  height: auto; /* Maintains aspect ratio when width is constrained */