Simplify showing/hiding attached file name

Note we have to render the `<p>` tag in one line because at the time of
writing browsers don't consider elements with whitespace inside as empty
[1].

[1] https://developer.mozilla.org/en-US/docs/Web/CSS/:empty
This commit is contained in:
Javi Martín
2021-06-20 16:16:39 +02:00
parent afbd1fec37
commit 8116e75aee
5 changed files with 6 additions and 10 deletions

View File

@@ -17,9 +17,7 @@
</div>
<div class="small-6 column">
<p class="file-name">
<%= document_attachment_file_name %>
</p>
<p class="file-name"><%= document_attachment_file_name %></p>
</div>
<div class="small-12 column">