forked from crunk/distribusi-verse
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(
|
||||
distribusiname=current_distribusi
|
||||
).first()
|
||||
if distribusi is not None:
|
||||
if distribusi is not None and distribusi.publictheme is not None:
|
||||
cssplaceholder = GetPublicCssFile(distribusi)
|
||||
else:
|
||||
with open("themes/editor/placeholder.css") as f:
|
||||
|
@ -102,7 +102,10 @@ fieldset.tagfield > input {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#publicthemes > ul {
|
||||
max-height: 20em;
|
||||
overflow: scroll;
|
||||
}
|
||||
input {
|
||||
border: none;
|
||||
background: #E0B0FF;
|
||||
|
@ -25,7 +25,7 @@
|
||||
<hr>
|
||||
<form method="POST" enctype="multipart/form-data" action="{{ url_for('theme') }}">
|
||||
{{ publicthemeform.csrf_token }}
|
||||
<fieldset class="required">
|
||||
<fieldset id="publicthemes" class="required">
|
||||
{{ publicthemeform.publicthemes.label }}
|
||||
{{ publicthemeform.publicthemes }}
|
||||
</fieldset>
|
||||
|
Loading…
Reference in New Issue
Block a user