Skip to content

Commit ab14ad5

Browse files
wolfibDevtools-frontend LUCI CQ
authored andcommitted
[Patch agent] Fix overflow issues for long folder names
Bug: http://b/406133185 Change-Id: I5fc7c4efc7c248405470c88d7c0e3eec85ea8166 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6434286 Commit-Queue: Wolfgang Beyer <wolfi@chromium.org> Auto-Submit: Wolfgang Beyer <wolfi@chromium.org> Commit-Queue: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org>
1 parent 240377f commit ab14ad5

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

front_end/panels/ai_assistance/PatchWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export class PatchWidget extends UI.Widget.Widget {
310310
${input.projectName ? html`
311311
<div class="change-workspace">
312312
<div class="selected-folder">
313-
<devtools-icon .name=${'folder'}></devtools-icon> <span title=${input.projectPath}>${input.projectName}</span>
313+
<devtools-icon .name=${'folder'}></devtools-icon> <span class="folder-name" title=${input.projectPath}>${input.projectName}</span>
314314
</div>
315315
<devtools-button
316316
@click=${input.onChangeWorkspaceClick}

front_end/panels/ai_assistance/SelectWorkspaceDialog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export class SelectWorkspaceDialog extends UI.Widget.VBox {
111111
title=${project.path}
112112
>
113113
<devtools-icon class="folder-icon" .name=${'folder'}></devtools-icon>
114-
${project.name}
114+
<span class="ellipsis">${project.name}</span>
115115
</li>`;
116116
})}
117117
</ul>

front_end/panels/ai_assistance/components/chatView.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,7 @@ main {
757757
position: relative;
758758
margin: 0 var(--sys-size-5);
759759
padding: 0 var(--sys-size-5);
760+
min-width: var(--sys-size-31);
760761

761762
&.saved-to-disk {
762763
pointer-events: none;
@@ -864,12 +865,20 @@ main {
864865
display: flex;
865866
align-items: center;
866867
gap: var(--sys-size-3);
868+
overflow: hidden;
869+
870+
.folder-name {
871+
white-space: nowrap;
872+
overflow: hidden;
873+
text-overflow: ellipsis;
874+
}
867875
}
868876

869877
.change-workspace {
870878
display: flex;
871879
flex-direction: row;
872880
gap: var(--sys-size-2);
881+
overflow: hidden;
873882
}
874883

875884
.info-tooltip-container {

front_end/panels/ai_assistance/selectWorkspaceDialog.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,9 @@ li.selected {
7474
color: var(--app-color-navigation-drawer-label-selected);
7575
}
7676
}
77+
78+
.ellipsis {
79+
overflow: hidden;
80+
text-overflow: ellipsis;
81+
white-space: nowrap;
82+
}

0 commit comments

Comments
 (0)