Browse Source

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

current_wdka_release
crunk 3 years ago
parent
commit
96c7f3a532
  1. 2
      verse/editor.py
  2. 5
      verse/static/css/style.css
  3. 2
      verse/templates/distribusiworkflow/theme.html

2
verse/editor.py

@ -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:

5
verse/static/css/style.css

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

2
verse/templates/distribusiworkflow/theme.html

@ -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…
Cancel
Save