Nevermind, the span wasn't useless.

The h2 needs to hold the title input so it stays block-level.
This commit is contained in:
voussoir 2017-07-13 23:28:51 -07:00
parent ee555f5f41
commit 8bf33f7ac6

View file

@ -40,12 +40,14 @@ p
<body>
{{header.make_header(session=session)}}
<div id="content_body">
<h2 data-editor-id="title" data-editor-placeholder="title" id="title_text">
<h2>
<span data-editor-id="title" data-editor-placeholder="title" id="title_text">
{%- if album.title -%}
{{album.title}}
{%- else -%}
Album {{album.id}}
{%- endif -%}
</span>
</h2>
<p data-editor-id="description" data-editor-placeholder="description" id="description_text" {% if album.description == "" %}class="hidden"{% endif %}>{{album.description}}</p>