Skip to content

Commit dfe4b67

Browse files
committed
chore: project dropdown location display change , rendering html and styles
1 parent 3f026a6 commit dfe4b67

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

src/extensionsIntegrated/RecentProjects/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,7 @@ define(function (require, exports, module) {
548548
});
549549

550550
AppInit.htmlReady(function () {
551-
$("#project-title")
552-
.wrap("<div id='project-dropdown-toggle' class='btn-alt-quiet'></div>")
553-
.after("<span class='dropdown-arrow'></span>");
551+
$("#project-dropdown-toggle .dropdown-arrow").removeClass("forced-hidden");
554552

555553
var cmenuAdapter = {
556554
open: showDropdown,

src/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,10 @@
824824
</div>
825825
<div id="project-files-header">
826826
<i id="project-operations-spinner" class="fa fa-spinner fa-spin forced-hidden"></i>
827-
<span id="project-title" class="title"></span>
827+
<div id='project-dropdown-toggle' class='btn-alt-quiet'>
828+
<span id="project-title" class="title"></span>
829+
<span class='dropdown-arrow forced-hidden'></span>
830+
</div>
828831
</div>
829832
<div id="project-files-container">
830833
<!-- This will contain a dynamically generated <ul> hierarchy at runtime -->

src/phoenix/shell.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// jshint ignore: start
2020
/*eslint no-console: 0*/
2121
/*eslint strict: ["error", "global"]*/
22-
/*global Phoenix, fs*/
22+
/*global fs, path*/
2323

2424

2525
/** Setup phoenix shell components
@@ -334,7 +334,7 @@ Phoenix.app = {
334334
if (fullVFSPath.startsWith(Phoenix.VFS.getMountDir())) {
335335
return fullVFSPath.replace(Phoenix.VFS.getMountDir(), "");
336336
}
337-
return window.Strings.STORED_IN_YOUR_BROWSER;
337+
return `${path.basename(fullVFSPath)} - ${window.Strings.STORED_IN_YOUR_BROWSER}`;
338338
},
339339
getDisplayPath: function (fullOrRelativeVFSPath) {
340340
if(!fullOrRelativeVFSPath){

test/spec/LowLevelFileIO-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ define(function (require, exports, module) {
110110
expect(brackets.app.getDisplayLocation("/mnt/apple")).toBe("apple");
111111
expect(brackets.app.getDisplayLocation("/mnt/apple/x/")).toBe("apple/x/");
112112
// filer paths
113-
expect(brackets.app.getDisplayLocation("/x/apple")).toBe(Strings.STORED_IN_YOUR_BROWSER);
114-
expect(brackets.app.getDisplayLocation("/y/apple/x/")).toBe(Strings.STORED_IN_YOUR_BROWSER);
113+
expect(brackets.app.getDisplayLocation("/x/apple")).toBe("apple - "+ Strings.STORED_IN_YOUR_BROWSER);
114+
expect(brackets.app.getDisplayLocation("/y/apple/x/")).toBe("x - " + Strings.STORED_IN_YOUR_BROWSER);
115115
});
116116

117117
it("should getDisplayLocation return correct path in tauri", function () {

0 commit comments

Comments
 (0)