Removes unecessary divs and adds max width to longer names.
This commit is contained in:
parent
045f8cc971
commit
468bde67ff
3 changed files with 32 additions and 19 deletions
|
@ -9,11 +9,20 @@
|
|||
|
||||
#app-sidebar .mainFileInfoView {
|
||||
margin-right: 20px; /* accomodate for close icon */
|
||||
float:left;
|
||||
display:block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#app-sidebar .file-details-container {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#app-sidebar .thumbnail {
|
||||
width: 75px;
|
||||
height: 75px;
|
||||
display: inline-block;
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
background-size: 75px;
|
||||
|
@ -31,10 +40,16 @@
|
|||
padding-bottom: 3px;
|
||||
}
|
||||
|
||||
#app-sidebar .fileName h3 {
|
||||
max-width: 300px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#app-sidebar .file-details {
|
||||
margin-top: 3px;
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
||||
opacity: .5;
|
||||
float:left;
|
||||
}
|
||||
#app-sidebar .action-favorite {
|
||||
vertical-align: text-bottom;
|
||||
|
|
|
@ -10,24 +10,20 @@
|
|||
|
||||
(function() {
|
||||
var TEMPLATE =
|
||||
'<div>' +
|
||||
' <div class="detailFileInfoContainer">' +
|
||||
' </div>' +
|
||||
' <div>' +
|
||||
' {{#if tabHeaders}}' +
|
||||
' <ul class="tabHeaders">' +
|
||||
' {{#if tabHeaders}}' +
|
||||
' <ul class="tabHeaders">' +
|
||||
' {{#each tabHeaders}}' +
|
||||
' <li class="tabHeader" data-tabid="{{tabId}}" data-tabindex="{{tabIndex}}">' +
|
||||
' <a href="#">{{label}}</a>' +
|
||||
' </li>' +
|
||||
' {{/each}}' +
|
||||
' </ul>' +
|
||||
' {{/if}}' +
|
||||
' <div class="tabsContainer">' +
|
||||
' </div>' +
|
||||
' </ul>' +
|
||||
' {{/if}}' +
|
||||
' <div class="tabsContainer">' +
|
||||
' </div>' +
|
||||
' <a class="close icon-close" href="#" alt="{{closeLabel}}"></a>' +
|
||||
'</div>';
|
||||
' <a class="close icon-close" href="#" alt="{{closeLabel}}"></a>';
|
||||
|
||||
/**
|
||||
* @class OCA.Files.DetailsView
|
||||
|
@ -268,4 +264,3 @@
|
|||
|
||||
OCA.Files.DetailsView = DetailsView;
|
||||
})();
|
||||
|
||||
|
|
|
@ -10,14 +10,17 @@
|
|||
|
||||
(function() {
|
||||
var TEMPLATE =
|
||||
'<a href="#" class="thumbnail action-default"></a><div title="{{name}}" class="fileName ellipsis">{{name}}</div>' +
|
||||
'<div class="file-details ellipsis">' +
|
||||
' <a href="#" ' +
|
||||
' alt="{{starAltText}}"' +
|
||||
' class="action action-favorite favorite">' +
|
||||
' <img class="svg" src="{{starIcon}}" />' +
|
||||
' </a>' +
|
||||
' {{#if hasSize}}<span class="size" title="{{altSize}}">{{size}}</span>, {{/if}}<span class="date" title="{{altDate}}">{{date}}</span>' +
|
||||
'<a href="#" class="thumbnail action-default"></a>' +
|
||||
'<div class="file-details-container">' +
|
||||
'<div class="fileName"><h3 title="{{name}}" class="ellipsis">{{name}}</h3></div>' +
|
||||
' <div class="file-details ellipsis">' +
|
||||
' <a href="#" ' +
|
||||
' alt="{{starAltText}}"' +
|
||||
' class="action action-favorite favorite">' +
|
||||
' <img class="svg" src="{{starIcon}}" />' +
|
||||
' </a>' +
|
||||
' {{#if hasSize}}<span class="size" title="{{altSize}}">{{size}}</span>, {{/if}}<span class="date" title="{{altDate}}">{{date}}</span>' +
|
||||
' </div>' +
|
||||
'</div>';
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue