From 76dd07bdb92155d133f0790dd0a870df7c30f585 Mon Sep 17 00:00:00 2001 From: Slava Kyrachevsky Date: Wed, 14 Dec 2016 10:57:11 +0200 Subject: [PATCH] fix large filename browse --- filebrowser/static/filebrowser/css/filebrowser.css | 7 +++++-- filebrowser/static/filebrowser/css/suit-filebrowser.css | 7 ++++++- .../templates/filebrowser/include/filelisting.html | 4 ++-- filebrowser/templates/suit/include/filelisting.html | 4 ++-- filebrowser/templates/suit/index.html | 9 --------- 5 files changed, 15 insertions(+), 16 deletions(-) diff --git a/filebrowser/static/filebrowser/css/filebrowser.css b/filebrowser/static/filebrowser/css/filebrowser.css index 0ff9d9b..85873cc 100755 --- a/filebrowser/static/filebrowser/css/filebrowser.css +++ b/filebrowser/static/filebrowser/css/filebrowser.css @@ -33,7 +33,10 @@ padding-bottom: 0 !important; } - +.filename_dimensions { + max-width: 100px; + word-break: break-all; +} /* Filebrowser Buttons & Links ------------------------------------------------------------------------------------------------------ */ @@ -203,4 +206,4 @@ ul.pulldown-actions a { padding: 5px 30px 5px 10px; font-weight: bold; white-space: nowrap; -} \ No newline at end of file +} diff --git a/filebrowser/static/filebrowser/css/suit-filebrowser.css b/filebrowser/static/filebrowser/css/suit-filebrowser.css index 8803359..6c5799f 100644 --- a/filebrowser/static/filebrowser/css/suit-filebrowser.css +++ b/filebrowser/static/filebrowser/css/suit-filebrowser.css @@ -14,4 +14,9 @@ body .redactor_toolbar li a.redactor_btn_browser { background-repeat: no-repeat; background-position: -408px -120px;*/ background: url("../img/explorer.png") no-repeat; -} \ No newline at end of file +} + +.filename_dimensions { + max-width: 100px; + word-break: break-all; +} diff --git a/filebrowser/templates/filebrowser/include/filelisting.html b/filebrowser/templates/filebrowser/include/filelisting.html index b738f62..f87c6cf 100755 --- a/filebrowser/templates/filebrowser/include/filelisting.html +++ b/filebrowser/templates/filebrowser/include/filelisting.html @@ -53,9 +53,9 @@ {% if file.filetype == "Folder" %} - {{ file.filename }} + {{ file.filename }} {% else %} - + {{ file.filename }} {% if file.dimensions %}
{{ file.dimensions.0 }} x {{ file.dimensions.1 }} px
diff --git a/filebrowser/templates/suit/include/filelisting.html b/filebrowser/templates/suit/include/filelisting.html index 1c4cf72..32d1312 100755 --- a/filebrowser/templates/suit/include/filelisting.html +++ b/filebrowser/templates/suit/include/filelisting.html @@ -79,9 +79,9 @@ {% if file.filetype == "Folder" %} - {{ file.filename }} + {{ file.filename }} {% else %} - + {{ file.filename }} {% if file.dimensions %}
{{ file.dimensions.0 }} x {{ file.dimensions.1 }} px
diff --git a/filebrowser/templates/suit/index.html b/filebrowser/templates/suit/index.html index 07cdd07..9a6945c 100644 --- a/filebrowser/templates/suit/index.html +++ b/filebrowser/templates/suit/index.html @@ -5,20 +5,11 @@ {% block extrastyle %} {{ block.super }} - {# #} - {% if cl.formset %} - {# #} - {% endif %} {% if cl.formset or action_form %} {% url 'admin:jsi18n' as jsi18nurl %} {% endif %} {{ media.css }} - {% if not actions_on_top and not actions_on_bottom %} - - {% endif %} {% endblock %} {% block extrahead %}