Added default height value to the text are for the prompt on most tabs, this should help with it having the proper height, we still need to change min-height through CSS so it might still break sometimes.

This commit is contained in:
ZeroCool940711 2022-10-20 13:19:26 -07:00
parent 4ff1bfa691
commit c93684ca01
3 changed files with 3 additions and 3 deletions

View File

@ -371,7 +371,7 @@ def layout():
with img2img_input_col:
#prompt = st.text_area("Input Text","")
placeholder = "A corgi wearing a top hat as an oil painting."
prompt = st.text_area("Input Text","", placeholder=placeholder)
prompt = st.text_area("Input Text","", placeholder=placeholder, height=54)
key_phrase_suggestions.suggestion_area(placeholder)
# Every form must have a submit button, the extra blank spaces is a temp way to align it with the input field. Needs to be done in CSS or some other way.

View File

@ -406,7 +406,7 @@ def layout():
with input_col1:
#prompt = st.text_area("Input Text","")
placeholder = "A corgi wearing a top hat as an oil painting."
prompt = st.text_area("Input Text","", placeholder=placeholder)
prompt = st.text_area("Input Text","", placeholder=placeholder, height=54)
key_phrase_suggestions.suggestion_area(placeholder)
# creating the page layout using columns

View File

@ -642,7 +642,7 @@ def layout():
with input_col1:
#prompt = st.text_area("Input Text","")
placeholder = "A corgi wearing a top hat as an oil painting."
prompt = st.text_area("Input Text","", placeholder=placeholder)
prompt = st.text_area("Input Text","", placeholder=placeholder, height=54)
key_phrase_suggestions.suggestion_area(placeholder)
# Every form must have a submit button, the extra blank spaces is a temp way to align it with the input field. Needs to be done in CSS or some other way.