AIdeaText commited on
Commit
d806dbc
·
verified ·
1 Parent(s): 61baae9

Update modules/studentact/current_situation_interface.py

Browse files
modules/studentact/current_situation_interface.py CHANGED
@@ -102,6 +102,38 @@ def display_current_situation_interface(lang_code, nlp_models, t):
102
  with st.container():
103
  input_col, results_col = st.columns([1,2])
104
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
105
  ###############################################################################################
106
  with input_col:
107
  with st.form(key=f"text_input_form_{lang_code}"):
 
102
  with st.container():
103
  input_col, results_col = st.columns([1,2])
104
 
105
+ ###############################################################################################
106
+ # CSS personalizado para que el formulario ocupe todo el alto disponible
107
+ st.markdown("""
108
+ <style>
109
+ /* Hacer que la columna tenga una altura definida */
110
+ [data-testid="column"] {
111
+ min-height: 900px;
112
+ height: 100vh; /* 100% del alto visible de la ventana */
113
+ }
114
+
115
+ /* Hacer que el formulario ocupe el espacio disponible en la columna */
116
+ .stForm {
117
+ height: calc(100% - 40px); /* Ajuste por márgenes y paddings */
118
+ display: flex;
119
+ flex-direction: column;
120
+ }
121
+
122
+ /* Hacer que el área de texto se expanda dentro del formulario */
123
+ .stForm .stTextArea {
124
+ flex: 1;
125
+ display: flex;
126
+ flex-direction: column;
127
+ }
128
+
129
+ /* El textarea en sí debe expandirse */
130
+ .stForm .stTextArea textarea {
131
+ flex: 1;
132
+ min-height: 750px !important;
133
+ }
134
+ </style>
135
+ """, unsafe_allow_html=True)
136
+
137
  ###############################################################################################
138
  with input_col:
139
  with st.form(key=f"text_input_form_{lang_code}"):