Skip to content

Commit

Permalink
Fix text wrap for long filenames in media table view (#2906)
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasmolleja authored and sebastienros committed Dec 19, 2018
1 parent 3a8fa61 commit f23561e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Vue.component('mediaItemsTable', {
</td> \
<td> \
<div class="media-name-cell"> \
{{ media.name }} \
<span class="break-word"> {{ media.name }} </span>\
<div class="buttons-container"> \
<a href="javascript:;" class="btn btn-link btn-sm mr-1 edit-button" v-on:click.stop="renameMedia(media)"> {{ T.editButton }} </a > \
<a href="javascript:;" class="btn btn-link btn-sm delete-button" v-on:click.stop="deleteMedia(media)"> {{ T.deleteButton }} </a> \
Expand Down Expand Up @@ -68,7 +68,6 @@ Vue.component('mediaItemsTable', {
},
created: function () {
var self = this;
// retrieving localized strings from view
self.T.imageHeader = $('#t-image-header').val();
self.T.nameHeader = $('#t-name-header').val();
self.T.sizeHeader = $('#t-size-header').val();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
}
}

.break-word {
word-break: break-all;
word-wrap: break-word;
}

[v-cloak] {
display: none !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2689,7 +2689,7 @@ Vue.component('mediaItemsTable', {
</td> \
<td> \
<div class="media-name-cell"> \
{{ media.name }} \
<span class="break-word"> {{ media.name }} </span>\
<div class="buttons-container"> \
<a href="javascript:;" class="btn btn-link btn-sm mr-1 edit-button" v-on:click.stop="renameMedia(media)"> {{ T.editButton }} </a > \
<a href="javascript:;" class="btn btn-link btn-sm delete-button" v-on:click.stop="deleteMedia(media)"> {{ T.deleteButton }} </a> \
Expand Down Expand Up @@ -2720,7 +2720,6 @@ Vue.component('mediaItemsTable', {
},
created: function () {
var self = this;
// retrieving localized strings from view
self.T.imageHeader = $('#t-image-header').val();
self.T.nameHeader = $('#t-name-header').val();
self.T.sizeHeader = $('#t-size-header').val();
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -402,5 +402,9 @@ ol.media-items-grid {
text-overflow: ellipsis;
display: block; }

.break-word {
word-break: break-all;
word-wrap: break-word; }

[v-cloak] {
display: none !important; }

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f23561e

Please sign in to comment.