diff --git a/src/extensionsIntegrated/RecentProjects/main.js b/src/extensionsIntegrated/RecentProjects/main.js
index 0ccb33e0ef..f7d1a8db8a 100644
--- a/src/extensionsIntegrated/RecentProjects/main.js
+++ b/src/extensionsIntegrated/RecentProjects/main.js
@@ -548,9 +548,7 @@ define(function (require, exports, module) {
});
AppInit.htmlReady(function () {
- $("#project-title")
- .wrap("
")
- .after("");
+ $("#project-dropdown-toggle .dropdown-arrow").removeClass("forced-hidden");
var cmenuAdapter = {
open: showDropdown,
diff --git a/src/index.html b/src/index.html
index 38453eb405..490e34c408 100644
--- a/src/index.html
+++ b/src/index.html
@@ -824,7 +824,10 @@
diff --git a/src/phoenix/shell.js b/src/phoenix/shell.js
index ae8a61533e..e9e518a2ab 100644
--- a/src/phoenix/shell.js
+++ b/src/phoenix/shell.js
@@ -19,7 +19,7 @@
// jshint ignore: start
/*eslint no-console: 0*/
/*eslint strict: ["error", "global"]*/
-/*global Phoenix, fs*/
+/*global fs, path*/
/** Setup phoenix shell components
@@ -334,7 +334,7 @@ Phoenix.app = {
if (fullVFSPath.startsWith(Phoenix.VFS.getMountDir())) {
return fullVFSPath.replace(Phoenix.VFS.getMountDir(), "");
}
- return window.Strings.STORED_IN_YOUR_BROWSER;
+ return `${path.basename(fullVFSPath)} - ${window.Strings.STORED_IN_YOUR_BROWSER}`;
},
getDisplayPath: function (fullOrRelativeVFSPath) {
if(!fullOrRelativeVFSPath){
diff --git a/src/styles/Extn-RecentProjects.less b/src/styles/Extn-RecentProjects.less
index 46c8bf4454..2465b24770 100644
--- a/src/styles/Extn-RecentProjects.less
+++ b/src/styles/Extn-RecentProjects.less
@@ -45,18 +45,27 @@
}
#project-dropdown-toggle {
- display: inline-block;
+ display: flex;
/* adjust margins to keep position #project-title position stable after extension is loaded */
- margin: -3px 5px -2px -6px;
overflow: hidden;
- padding: 0 5px;
white-space: nowrap;
+ padding: 2px 5px;
+ margin-left: -5px;
+ .dropdown-arrow {
+ display: inline-block;
+ width: 7px;
+ height: 5px;
+ margin-left: 4px;
+ position: relative;
+ top: 7px;
+ }
}
#project-title {
- /* vertical align center text */
- height: 21px;
- line-height: 21px;
+ display: inline-block;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ flex: 1 1 0;
}
#project-dropdown-toggle:hover .dropdown-arrow {
diff --git a/src/styles/brackets.less b/src/styles/brackets.less
index 9b7a520ed3..fca8d95faa 100644
--- a/src/styles/brackets.less
+++ b/src/styles/brackets.less
@@ -1325,10 +1325,11 @@ a, img {
display: flex;
align-items: center;
border-top: 1px solid rgba(255, 255, 255, 0.05);
- padding: 8px 0 9px 12px;
+ padding: 6px 0 6px 12px;
font-size: 15px;
color: @project-panel-text-2;
overflow: hidden;
+ gap: .5em;
.btn-alt-quiet {
background-color: #47484b;
@@ -1340,7 +1341,8 @@ a, img {
}
#project-operations-spinner{
- margin-right: 7px;
+ margin-right: 5px;
+ margin-top: 0;
}
.open-files-container {
diff --git a/test/spec/LowLevelFileIO-test.js b/test/spec/LowLevelFileIO-test.js
index f9ff481199..7b72eb897c 100644
--- a/test/spec/LowLevelFileIO-test.js
+++ b/test/spec/LowLevelFileIO-test.js
@@ -110,8 +110,8 @@ define(function (require, exports, module) {
expect(brackets.app.getDisplayLocation("/mnt/apple")).toBe("apple");
expect(brackets.app.getDisplayLocation("/mnt/apple/x/")).toBe("apple/x/");
// filer paths
- expect(brackets.app.getDisplayLocation("/x/apple")).toBe(Strings.STORED_IN_YOUR_BROWSER);
- expect(brackets.app.getDisplayLocation("/y/apple/x/")).toBe(Strings.STORED_IN_YOUR_BROWSER);
+ expect(brackets.app.getDisplayLocation("/x/apple")).toBe("apple - "+ Strings.STORED_IN_YOUR_BROWSER);
+ expect(brackets.app.getDisplayLocation("/y/apple/x/")).toBe("x - " + Strings.STORED_IN_YOUR_BROWSER);
});
it("should getDisplayLocation return correct path in tauri", function () {