summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRaghu Nayyar <hey@raghunayyar.com>2015-08-30 14:17:18 +0200
committerRaghu Nayyar <hey@raghunayyar.com>2015-08-30 14:17:18 +0200
commit468bde67ff310d097b79e52a69001988554a562b (patch)
tree431f40f1f336f7a951cb261dff1409a4f83df05a /apps
parent045f8cc97101521cafd664faf7b8f24ea9e88451 (diff)
downloadnextcloud-server-468bde67ff310d097b79e52a69001988554a562b.tar.gz
nextcloud-server-468bde67ff310d097b79e52a69001988554a562b.zip
Removes unecessary divs and adds max width to longer names.
Diffstat (limited to 'apps')
-rw-r--r--apps/files/css/detailsView.css15
-rw-r--r--apps/files/js/detailsview.js17
-rw-r--r--apps/files/js/mainfileinfodetailview.js19
3 files changed, 32 insertions, 19 deletions
diff --git a/apps/files/css/detailsView.css b/apps/files/css/detailsView.css
index dafd8c24573..ffead923124 100644
--- a/apps/files/css/detailsView.css
+++ b/apps/files/css/detailsView.css
@@ -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;
diff --git a/apps/files/js/detailsview.js b/apps/files/js/detailsview.js
index a4ebe90cd64..83d7fd4a178 100644
--- a/apps/files/js/detailsview.js
+++ b/apps/files/js/detailsview.js
@@ -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;
})();
-
diff --git a/apps/files/js/mainfileinfodetailview.js b/apps/files/js/mainfileinfodetailview.js
index 513f833299a..f647a0de2a9 100644
--- a/apps/files/js/mainfileinfodetailview.js
+++ b/apps/files/js/mainfileinfodetailview.js
@@ -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>';
/**