From e0789c8f904be9d51a42916d0014c78fba6ab15f Mon Sep 17 00:00:00 2001 From: ZiRo Date: Sun, 22 May 2016 22:51:26 +0200 Subject: [PATCH] add filenames to images --- contrib/static/site.css | 11 ++++++----- contrib/templates/default/post.mustache | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/contrib/static/site.css b/contrib/static/site.css index 8b0be9e..39395ba 100644 --- a/contrib/static/site.css +++ b/contrib/static/site.css @@ -72,16 +72,17 @@ textarea { padding: 10px 10px; } -.download_link { +.download_link,.fname_link { display: block; text-align: center; font-size: 90%; height: auto padding: 0.5em 0; - margin: 0; - max-width: 100%; + margin: auto; + max-width: 200px; overflow: hidden; text-overflow: ellipsis; + max-height: 2.4em; } pre { @@ -232,7 +233,6 @@ hr { max-width: 128px; box-shadow: 0 0 4px rgba(0,0,0,0.55); border: 2px solid rgba(153,153,153,0); - margin-bottom: 5px; } a:hover , a:visited:hover, .navbar-link > label:hover { @@ -405,7 +405,7 @@ input, textarea { .thumbnail { display: block; - margin: 5px 20px 10px; + margin: 5px 20px; border: medium none; max-width: 300px; max-height: 200px; @@ -527,4 +527,5 @@ textarea#reply-text { .attachments { float: left; + margin-bottom: 5px; } diff --git a/contrib/templates/default/post.mustache b/contrib/templates/default/post.mustache index 36bfc41..342a822 100644 --- a/contrib/templates/default/post.mustache +++ b/contrib/templates/default/post.mustache @@ -24,6 +24,7 @@
{{#i18n.Translations}}{{download_prompt}}{{/i18n.Translations}} {{Filename}} + {{Filename}}
{{/post.Attachments}}