From f99e9f5f322edc8b5788aa3b578f8bd372cbed94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sun, 9 Mar 2014 14:56:56 -0700 Subject: [PATCH] Improve path lisibility in desktop dashboard --- desktop/css/style.css | 5 +++++ desktop/js/main.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/css/style.css b/desktop/css/style.css index 4c13b397..edc10d0e 100644 --- a/desktop/css/style.css +++ b/desktop/css/style.css @@ -78,6 +78,11 @@ body { margin: 9px 10px 0px 2px; width: 32px; } +#projects .project .project-path { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; +} #projects hr { margin: 20px 10px; border: 0px; diff --git a/desktop/js/main.js b/desktop/js/main.js index a0c1d775..8846b74d 100644 --- a/desktop/js/main.js +++ b/desktop/js/main.js @@ -116,7 +116,7 @@ var updateProjects = function() { if (!fs.existsSync(path)) { projects = _.without(projects, path); } - addProjectItem(path.split("/").pop(), path, "icons/folder.png", function() { + addProjectItem(path.split("/").pop(), path.replace(process.env.HOME || "", "~"), "icons/folder.png", function() { runLocalCodebox(path); }); });