mirror of
https://github.com/Sygil-Dev/sygil-webui.git
synced 2025-01-07 11:59:59 +03:00
Fixed the page/layout being pushed up when expanders or other item expanded and then collapsed. (#1559)
This commit is contained in:
commit
52bb75058b
@ -30,6 +30,7 @@ button[data-baseweb="tab"] {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Streamlit header */
|
/* Streamlit header */
|
||||||
.css-1avcm0n {
|
.css-1avcm0n {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
@ -135,6 +136,7 @@ div.gallery:hover {
|
|||||||
/********************************************************************
|
/********************************************************************
|
||||||
Hide anchor links on titles
|
Hide anchor links on titles
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
/*
|
||||||
.css-15zrgzn {
|
.css-15zrgzn {
|
||||||
display: none
|
display: none
|
||||||
}
|
}
|
||||||
@ -159,6 +161,7 @@ div.gallery:hover {
|
|||||||
.css-18e3th9{
|
.css-18e3th9{
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
position: unset !important; /* Fixes the layout/page going up when an expander or another item is expanded and then collapsed */
|
||||||
}
|
}
|
||||||
.css-k1vhr4{
|
.css-k1vhr4{
|
||||||
padding-top: initial;
|
padding-top: initial;
|
||||||
@ -169,3 +172,7 @@ div.gallery:hover {
|
|||||||
gap: initial;
|
gap: initial;
|
||||||
display: initial;
|
display: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.css-w5z5an{
|
||||||
|
gap: 1px;
|
||||||
|
}
|
||||||
|
@ -61,7 +61,7 @@ def layout():
|
|||||||
custom_models_available()
|
custom_models_available()
|
||||||
|
|
||||||
if server_state["CustomModel_available"]:
|
if server_state["CustomModel_available"]:
|
||||||
st.session_state.default_model = st.selectbox("Default Model:", server_state["custom_models"],
|
st.session_state.defaults.general.default_model = st.selectbox("Default Model:", server_state["custom_models"],
|
||||||
index=server_state["custom_models"].index(st.session_state['defaults'].general.default_model),
|
index=server_state["custom_models"].index(st.session_state['defaults'].general.default_model),
|
||||||
help="Select the model you want to use. If you have placed custom models \
|
help="Select the model you want to use. If you have placed custom models \
|
||||||
on your 'models/custom' folder they will be shown here as well. The model name that will be shown here \
|
on your 'models/custom' folder they will be shown here as well. The model name that will be shown here \
|
||||||
@ -69,7 +69,7 @@ def layout():
|
|||||||
it is recommended to give the .ckpt file a name that \
|
it is recommended to give the .ckpt file a name that \
|
||||||
will make it easier for you to distinguish it from other models. Default: Stable Diffusion v1.4")
|
will make it easier for you to distinguish it from other models. Default: Stable Diffusion v1.4")
|
||||||
else:
|
else:
|
||||||
st.session_state.default_model = st.selectbox("Default Model:", [st.session_state['defaults'].general.default_model],
|
st.session_state.defaults.general.default_model = st.selectbox("Default Model:", [st.session_state['defaults'].general.default_model],
|
||||||
help="Select the model you want to use. If you have placed custom models \
|
help="Select the model you want to use. If you have placed custom models \
|
||||||
on your 'models/custom' folder they will be shown here as well. \
|
on your 'models/custom' folder they will be shown here as well. \
|
||||||
The model name that will be shown here is the same as the name\
|
The model name that will be shown here is the same as the name\
|
||||||
|
Loading…
Reference in New Issue
Block a user