limit custom themes visible with simple overflow scroll and 20em size

This commit is contained in:
crunk 2022-03-25 16:07:59 +01:00
parent 8dc7871d33
commit 96c7f3a532
3 changed files with 6 additions and 3 deletions

View File

@ -158,7 +158,7 @@ def CssPlaceholder(current_distribusi):
distribusi = Distribusis.query.filter_by( distribusi = Distribusis.query.filter_by(
distribusiname=current_distribusi distribusiname=current_distribusi
).first() ).first()
if distribusi is not None: if distribusi is not None and distribusi.publictheme is not None:
cssplaceholder = GetPublicCssFile(distribusi) cssplaceholder = GetPublicCssFile(distribusi)
else: else:
with open("themes/editor/placeholder.css") as f: with open("themes/editor/placeholder.css") as f:

View File

@ -102,7 +102,10 @@ fieldset.tagfield > input {
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
} }
#publicthemes > ul {
max-height: 20em;
overflow: scroll;
}
input { input {
border: none; border: none;
background: #E0B0FF; background: #E0B0FF;

View File

@ -25,7 +25,7 @@
<hr> <hr>
<form method="POST" enctype="multipart/form-data" action="{{ url_for('theme') }}"> <form method="POST" enctype="multipart/form-data" action="{{ url_for('theme') }}">
{{ publicthemeform.csrf_token }} {{ publicthemeform.csrf_token }}
<fieldset class="required"> <fieldset id="publicthemes" class="required">
{{ publicthemeform.publicthemes.label }} {{ publicthemeform.publicthemes.label }}
{{ publicthemeform.publicthemes }} {{ publicthemeform.publicthemes }}
</fieldset> </fieldset>