Skip to content

Commit

Permalink
Merge pull request #28 from scream4ik/master
Browse files Browse the repository at this point in the history
fix large filename browse
  • Loading branch information
scream4ik authored Dec 14, 2016
2 parents 0f30d23 + 76dd07b commit 1271117
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
7 changes: 5 additions & 2 deletions filebrowser/static/filebrowser/css/filebrowser.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
padding-bottom: 0 !important;
}


.filename_dimensions {
max-width: 100px;
word-break: break-all;
}

/* Filebrowser Buttons & Links
------------------------------------------------------------------------------------------------------ */
Expand Down Expand Up @@ -203,4 +206,4 @@ ul.pulldown-actions a {
padding: 5px 30px 5px 10px;
font-weight: bold;
white-space: nowrap;
}
}
7 changes: 6 additions & 1 deletion filebrowser/static/filebrowser/css/suit-filebrowser.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

.filename_dimensions {
max-width: 100px;
word-break: break-all;
}
4 changes: 2 additions & 2 deletions filebrowser/templates/filebrowser/include/filelisting.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@

<!-- FILENAME/DIMENSIONS -->
{% if file.filetype == "Folder" %}
<td><a href="{% url "fb_browse" %}{% query_string "" "q,dir,p" %}&amp;dir={{ file.path_relative_directory|urlencode }}"><strong>{{ file.filename }}</strong></a></td>
<td class="filename_dimensions"><a href="{% url "fb_browse" %}{% query_string "" "q,dir,p" %}&amp;dir={{ file.path_relative_directory|urlencode }}"><strong>{{ file.filename }}</strong></a></td>
{% else %}
<td>
<td class="filename_dimensions">
<b><a href="{{ file.url_full }}">{{ file.filename }}</a></b>
{% if file.dimensions %}
<br /><span class="tiny">{{ file.dimensions.0 }} x {{ file.dimensions.1 }} px</span><br clear="all" />
Expand Down
4 changes: 2 additions & 2 deletions filebrowser/templates/suit/include/filelisting.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@

<!-- FILENAME/DIMENSIONS -->
{% if file.filetype == "Folder" %}
<td><a href="{% url "fb_browse" %}{% query_string "" "q,dir,p" %}&amp;dir={{ file.path_relative_directory|urlencode }}"><strong>{{ file.filename }}</strong></a></td>
<td class="filename_dimensions"><a href="{% url "fb_browse" %}{% query_string "" "q,dir,p" %}&amp;dir={{ file.path_relative_directory|urlencode }}"><strong>{{ file.filename }}</strong></a></td>
{% else %}
<td>
<td class="filename_dimensions">
<b><a href="{{ file.url_full }}">{{ file.filename }}</a></b>
{% if file.dimensions %}
<br /><span class="tiny">{{ file.dimensions.0 }} x {{ file.dimensions.1 }} px</span><br clear="all" />
Expand Down
9 changes: 0 additions & 9 deletions filebrowser/templates/suit/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,11 @@
{% block extrastyle %}
{{ block.super }}
<link rel="stylesheet" type="text/css" href="{{ settings_var.URL_FILEBROWSER_MEDIA }}css/suit-filebrowser.css" />
{# <link rel="stylesheet" type="text/css" href="{% static "admin/css/changelists.css" %}" />#}
{% if cl.formset %}
{# <link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />#}
{% endif %}
{% if cl.formset or action_form %}
{% url 'admin:jsi18n' as jsi18nurl %}
<script type="text/javascript" src="{{ jsi18nurl|default:'../../jsi18n/' }}"></script>
{% endif %}
{{ media.css }}
{% if not actions_on_top and not actions_on_bottom %}
<style>
{# #changelist table thead th:first-child {width: inherit}#}
</style>
{% endif %}
{% endblock %}

{% block extrahead %}
Expand Down

0 comments on commit 1271117

Please sign in to comment.