forked from leftypol/leftypol
style.css: treat multiple files as a single block. Fixes weird text wrapping
This commit is contained in:
parent
4e6803e9a7
commit
49cd1f6f59
2 changed files with 5 additions and 1 deletions
|
@ -360,6 +360,10 @@ form table tr td div label {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.files.multifile {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
.file {
|
.file {
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% if post.embed %}
|
{% if post.embed %}
|
||||||
{{ post.embed }}
|
{{ post.embed }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="files">
|
<div class="files {% if post.num_files > 1 %} multifile{% endif %}">
|
||||||
{% for file in post.files %}
|
{% for file in post.files %}
|
||||||
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
||||||
{% if file.file == 'deleted' %}
|
{% if file.file == 'deleted' %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue