Skip to content

Commit 12bfabe

Browse files
committed
chore: chnage bin icon to close icon for remove from recent projects in new project win
1 parent 8e583a6 commit 12bfabe

File tree

3 files changed

+12
-13
lines changed

3 files changed

+12
-13
lines changed

src/assets/new-project/assets/css/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ img {
5757
-ms-user-select: none;
5858
}
5959

60+
.recent-project-remove {
61+
font-size: small;
62+
color: #8A8A8A;
63+
}
64+
.recent-project-remove:hover {
65+
color: white;
66+
}
67+
6068
.side-nav {
6169
background: #5D5F60;
6270
height: 100vh;

src/assets/new-project/assets/js/code-editor.js

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,9 @@ function _createRecentProjectCard(fullPath, displayLocation, nodeId, tabIndex) {
4141
<div class="project-name">
4242
${newProjectExtension.path.basename(fullPath)}
4343
</div>
44-
<button class="remove-btn" onclick="removeProject('${fullPath}');_recentProjectMetric('remove');"
45-
style="${removeBtnDisableStyle}">
46-
<svg width="16" height="16" viewBox="0 0 14 14" fill="none"
47-
xmlns="http://www.w3.org/2000/svg">
48-
<path d="M1.75 3.5H2.91667H12.25" stroke="#D0D0D0" stroke-linecap="round"
49-
stroke-linejoin="round"/>
50-
<path d="M4.6665 3.50008V2.33341C4.6665 2.024 4.78942 1.72725 5.00821 1.50846C5.22701 1.28966 5.52375 1.16675 5.83317 1.16675H8.1665C8.47592 1.16675 8.77267 1.28966 8.99146 1.50846C9.21026 1.72725 9.33317 2.024 9.33317 2.33341V3.50008M11.0832 3.50008V11.6667C11.0832 11.9762 10.9603 12.2729 10.7415 12.4917C10.5227 12.7105 10.2259 12.8334 9.91651 12.8334H4.08317C3.77375 12.8334 3.47701 12.7105 3.25821 12.4917C3.03942 12.2729 2.9165 11.9762 2.9165 11.6667V3.50008H11.0832Z"
51-
stroke="#D0D0D0" stroke-linecap="round" stroke-linejoin="round"/>
52-
<path d="M5.8335 6.41675V9.91675" stroke="#D0D0D0" stroke-linecap="round"
53-
stroke-linejoin="round"/>
54-
<path d="M8.1665 6.41675V9.91675" stroke="#D0D0D0" stroke-linecap="round"
55-
stroke-linejoin="round"/>
56-
</svg>
44+
<button class="remove-btn recent-project-remove" onclick="removeProject('${fullPath}');_recentProjectMetric('remove');"
45+
style="${removeBtnDisableStyle};" title="${Strings.REMOVE_FROM_RECENT_PROJECTS}">
46+
<i class="fa-solid fa-xmark"></i>
5747
</button>
5848
</a>
5949
<div style="overflow: hidden;">

src/nls/root/strings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,7 @@ define({
851851

852852
// extensions/default/RecentProjects
853853
"CMD_TOGGLE_RECENT_PROJECTS": "Recent Projects",
854+
"REMOVE_FROM_RECENT_PROJECTS": "Remove from Recent Projects",
854855

855856
// extensions/default/MDNDocs
856857
"DOCS_MORE_LINK": "Read more",

0 commit comments

Comments
 (0)