summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-07-15 17:35:35 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-08-07 01:22:43 +0200
commitad90ba27cdcdcd60e04ee0b781c6698124e900fa (patch)
tree05962caad5926625c3d096c4c2503484d6ebef42
parentff614a7dbde66a9cd795a674d0e0635b6f32e3a5 (diff)
downloadnextcloud-server-ad90ba27cdcdcd60e04ee0b781c6698124e900fa.tar.gz
nextcloud-server-ad90ba27cdcdcd60e04ee0b781c6698124e900fa.zip
Styling fixes + hightlight in files sidebar
Sidebar scrolls with contents Highlight currently show file
-rw-r--r--apps/files/css/detailsView.css6
-rw-r--r--apps/files/css/files.css1
-rw-r--r--apps/files/js/detailsview.js1
-rw-r--r--apps/files/js/filelist.js7
-rw-r--r--apps/files_sharing/appinfo/app.php1
-rw-r--r--apps/files_sharing/css/sharetabview.css3
-rw-r--r--apps/files_sharing/js/sharetabview.js1
7 files changed, 17 insertions, 3 deletions
diff --git a/apps/files/css/detailsView.css b/apps/files/css/detailsView.css
index a62bcd8c968..5b9b51a16d3 100644
--- a/apps/files/css/detailsView.css
+++ b/apps/files/css/detailsView.css
@@ -8,9 +8,9 @@
position: absolute;
width: 350px;
top: 0;
- bottom: 0;
right: 0;
left: auto;
+ min-height: 100%;
background-color: white;
-webkit-transition: margin-right 300ms;
-moz-transition: margin-right 300ms;
@@ -28,11 +28,11 @@
}
.app-files .detailsView .detailFileInfoContainer {
- min-height: 200px;
+ min-height: 80px;
padding: 10px;
}
-.app-files .detailsView .detailFileInfoContainer > div{
+.app-files .detailsView .detailFileInfoContainer > div {
clear: both;
margin-left: 5px;
}
diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index f2f2c5ac3bc..7375baeac30 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -143,6 +143,7 @@
#filestable tbody tr:active {
background-color: rgb(240,240,240);
}
+#filestable tbody tr.highlighted,
#filestable tbody tr.selected {
background-color: rgb(230,230,230);
}
diff --git a/apps/files/js/detailsview.js b/apps/files/js/detailsview.js
index d69d8c09c16..feced7e34dd 100644
--- a/apps/files/js/detailsview.js
+++ b/apps/files/js/detailsview.js
@@ -153,6 +153,7 @@
setFileInfo: function(fileInfo) {
this._fileInfo = fileInfo;
+ // FIXME: this will render panels twice
this.render();
// notify all panels
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 9f0d48ff011..5c7fcb6b998 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -286,12 +286,19 @@
*/
_updateDetailsView: function(fileInfo) {
var self = this;
+ var oldFileInfo = this._detailsView.getFileInfo();
+ if (oldFileInfo) {
+ // TODO: use more efficient way, maybe track the highlight
+ this.$fileList.children().filterAttr('data-id', '' + oldFileInfo.id).removeClass('highlighted');
+ }
+
if (!fileInfo) {
this._detailsView.$el.addClass('disappear');
this._detailsView.setFileInfo(null);
return;
}
+ this.$fileList.children().filterAttr('data-id', '' + fileInfo.id).addClass('highlighted');
this._detailsView.setFileInfo(_.extend({
path: this.getCurrentDirectory()
}, fileInfo));
diff --git a/apps/files_sharing/appinfo/app.php b/apps/files_sharing/appinfo/app.php
index f72f5024622..9000fafd8dd 100644
--- a/apps/files_sharing/appinfo/app.php
+++ b/apps/files_sharing/appinfo/app.php
@@ -56,6 +56,7 @@ $application->setupPropagation();
\OCP\Util::addScript('files_sharing', 'share');
\OCP\Util::addScript('files_sharing', 'external');
+\OCP\Util::addStyle('files_sharing', 'sharetabview');
// FIXME: registering a job here will cause additional useless SQL queries
// when the route is not cron.php, needs a better way
diff --git a/apps/files_sharing/css/sharetabview.css b/apps/files_sharing/css/sharetabview.css
new file mode 100644
index 00000000000..a8ad1ceaba7
--- /dev/null
+++ b/apps/files_sharing/css/sharetabview.css
@@ -0,0 +1,3 @@
+.app-files .shareTabView {
+ min-height: 200px;
+}
diff --git a/apps/files_sharing/js/sharetabview.js b/apps/files_sharing/js/sharetabview.js
index 42bddc20b3c..e02de923751 100644
--- a/apps/files_sharing/js/sharetabview.js
+++ b/apps/files_sharing/js/sharetabview.js
@@ -55,6 +55,7 @@
this.$el.append(this._template({
owner: this._fileInfo.shareOwner || OC.currentUser
}));
+
} else {
// TODO: render placeholder text?
}