Skip to content

Commit f99e9f5

Browse files
committed
Improve path lisibility in desktop dashboard
1 parent 1d8f100 commit f99e9f5

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

desktop/css/style.css

+5
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ body {
7878
margin: 9px 10px 0px 2px;
7979
width: 32px;
8080
}
81+
#projects .project .project-path {
82+
text-overflow: ellipsis;
83+
overflow: hidden;
84+
white-space: nowrap;
85+
}
8186
#projects hr {
8287
margin: 20px 10px;
8388
border: 0px;

desktop/js/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ var updateProjects = function() {
116116
if (!fs.existsSync(path)) {
117117
projects = _.without(projects, path);
118118
}
119-
addProjectItem(path.split("/").pop(), path, "icons/folder.png", function() {
119+
addProjectItem(path.split("/").pop(), path.replace(process.env.HOME || "", "~"), "icons/folder.png", function() {
120120
runLocalCodebox(path);
121121
});
122122
});

0 commit comments

Comments
 (0)