limit custom themes visible with simple overflow scroll and 20em size
This commit is contained in:
parent
8dc7871d33
commit
96c7f3a532
@ -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:
|
||||||
|
@ -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;
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user