summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorraghunayyar <me@iraghu.com>2014-06-07 23:54:21 +0530
committerraghunayyar <me@iraghu.com>2014-06-07 23:54:21 +0530
commit09206f8a495eec8d7452be66dee29f05e99ba8db (patch)
treeda6b83edf93405b380513729f4b25f7dd635e089 /apps/files
parentd71bb7dbe49d86ed6203d845aa28c530eb165ee9 (diff)
downloadnextcloud-server-09206f8a495eec8d7452be66dee29f05e99ba8db.tar.gz
nextcloud-server-09206f8a495eec8d7452be66dee29f05e99ba8db.zip
Adds class name to span element inside filename.
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/css/files.css12
-rw-r--r--apps/files/js/filelist.js2
2 files changed, 7 insertions, 7 deletions
diff --git a/apps/files/css/files.css b/apps/files/css/files.css
index 4c57dff77f9..e6b0f0f3835 100644
--- a/apps/files/css/files.css
+++ b/apps/files/css/files.css
@@ -285,7 +285,7 @@ table td.filename .nametext {
max-width: 800px;
}
-table td.filename .nametext span:not(.extension) {
+table td.filename .nametext .innernametext {
text-overflow: ellipsis;
overflow: hidden;
position: relative;
@@ -293,25 +293,25 @@ table td.filename .nametext span:not(.extension) {
}
@media only screen and (min-width: 1366px) {
- table td.filename .nametext span:not(.extension) {
+ table td.filename .nametext .innernametext {
max-width: 650px;
}
}
@media only screen and (min-width: 1200px) and (max-width: 1366px) {
- table td.filename .nametext span:not(.extension) {
+ table td.filename .nametext .innernametext {
max-width: 450px;
}
}
@media only screen and (min-width: 1000px) and (max-width: 1200px) {
- table td.filename .nametext span:not(.extension) {
+ table td.filename .nametext .innernametext {
max-width: 270px;
}
}
@media only screen and (min-width: 900px) and (max-width: 1000px) {
- table td.filename .nametext span:not(.extension) {
+ table td.filename .nametext .innernametext {
max-width: 210px;
}
}
@@ -323,7 +323,7 @@ table td.filename .nametext span:not(.extension) {
}
@media only screen and (max-width: 768px) {
- table td.filename .nametext span:not(.extension) {
+ table td.filename .nametext .innernametext {
max-width: 400px;
}
}
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 7466e4f3769..85c5d3f1bb0 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -597,7 +597,7 @@
extension = false;
}
var nameSpan=$('<span></span>').addClass('nametext');
- var innernameSpan = $('<span></span>').text(basename);
+ var innernameSpan = $('<span></span>').addClass('innernametext').text(basename);
nameSpan.append(innernameSpan);
linkElem.append(nameSpan);
if (extension) {