diff --git a/js/repeater-thumbnail.js b/js/repeater-thumbnail.js index de9f19b4f..6805b573a 100755 --- a/js/repeater-thumbnail.js +++ b/js/repeater-thumbnail.js @@ -8,7 +8,7 @@ // -- BEGIN UMD WRAPPER PREFACE -- -// For more information on UMD visit: +// For more information on UMD visit: // https://github.com/umdjs/umd/blob/master/jqueryPlugin.js (function (factory) { @@ -90,7 +90,8 @@ thumbnail_infiniteScroll: false, thumbnail_itemRendered: null, thumbnail_selectable: false, - thumbnail_template: '
{{name}}
' + // span space required for justified rows + thumbnail_template: '
{{name}}
 ' }); //EXTENSION DEFINITION @@ -203,4 +204,4 @@ // -- BEGIN UMD WRAPPER AFTERWORD -- })); -// -- END UMD WRAPPER AFTERWORD -- \ No newline at end of file +// -- END UMD WRAPPER AFTERWORD -- diff --git a/less/repeater-thumbnail.less b/less/repeater-thumbnail.less index 15271e034..3c78f5786 100755 --- a/less/repeater-thumbnail.less +++ b/less/repeater-thumbnail.less @@ -1,12 +1,16 @@ .repeater-thumbnail { border: 1px solid #ddd; color: #666; - float: left; + display: inline-block; min-height: 110px; min-width: 100px; margin: 8px 7px; text-align: center; + &:after { + content: ' '; + } + &.selectable { &:hover { background: #d9edf7; @@ -35,10 +39,20 @@ padding: 6px; width: 100%; + position: relative; + text-align: justify; + text-size: 0.1px; + + &:after { + display: inline-block; + width: 100%; + content: ''; + } + div.empty { font-style: italic; padding: 20px 10px; text-align: center; } } -} \ No newline at end of file +}