forked from GithubBackups/vichan
style.css: treat multiple files as a single flex block. Fixes weird text wrapping.
This commit is contained in:
parent
fa0537ea42
commit
a4da985489
@ -152,6 +152,11 @@ form table tr td div label {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.files.multifile {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.file {
|
||||
float: left;
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{% if post.embed %}
|
||||
{{ post.embed }}
|
||||
{% else %}
|
||||
<div class="files">
|
||||
<div class="files {% if post.num_files > 1 %} multifile{% endif %}">
|
||||
{% for file in post.files %}
|
||||
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
||||
{% if file.file == 'deleted' %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user