Skip to content

Commit 43a4a80

Browse files
ergunshDevtools-frontend LUCI CQ
authored andcommitted
[PatchWidget] Render icon in the footer for select workspace
Bug: none Change-Id: Id570f3d18e8ce9898d6f6c29c8b047e5ae7308d8 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6330283 Reviewed-by: Wolfgang Beyer <[email protected]> Auto-Submit: Ergün Erdoğmuş <[email protected]> Commit-Queue: Ergün Erdoğmuş <[email protected]>
1 parent 7809aa5 commit 43a4a80

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

front_end/panels/ai_assistance/PatchWidget.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ const UIStringsNotTranslate = {
5757
*@description Button text while data is being loaded
5858
*/
5959
loading: 'Loading...',
60-
/**
61-
*@description Label for the selected workspace/folder
62-
*/
63-
selectedFolder: 'Selected folder:',
6460
/**
6561
*@description Disclaimer text shown for using code snippets with caution
6662
*/
@@ -210,7 +206,7 @@ export class PatchWidget extends UI.Widget.Widget {
210206
<div class="footer">
211207
<div class="change-workspace">
212208
<div class="selected-folder">
213-
${lockedString(UIStringsNotTranslate.selectedFolder)} <span title=${input.projectPath}>${input.projectName}</span>
209+
<devtools-icon .name=${'folder'}></devtools-icon> <span title=${input.projectPath}>${input.projectName}</span>
214210
</div>
215211
<devtools-button
216212
@click=${input.onChangeWorkspaceClick}

front_end/panels/ai_assistance/components/chatView.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,12 +842,15 @@ main {
842842
}
843843

844844
.selected-folder {
845-
margin: var(--sys-size-3) var(--sys-size-3) 0 0;
845+
display: flex;
846+
align-items: center;
847+
gap: var(--sys-size-3);
846848
}
847849

848850
.change-workspace {
849851
display: flex;
850852
flex-direction: row;
853+
gap: var(--sys-size-2);
851854
}
852855

853856
.apply-to-workspace-container {

0 commit comments

Comments
 (0)