Skip to content

Commit 74ec898

Browse files
wolfibDevtools-frontend LUCI CQ
authored andcommitted
[Patch agent] Fix overflow issues for long folder names (Part 2)
Screencast: https://i.imgur.com/GoIJ4Zs.mp4 Bug: 406133185 Change-Id: I1464346cbbd2e689fcba5725b2f866c138b3d247 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6436656 Commit-Queue: Nikolay Vitkov <[email protected]> Reviewed-by: Nikolay Vitkov <[email protected]> Auto-Submit: Wolfgang Beyer <[email protected]>
1 parent 3b6a406 commit 74ec898

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

front_end/panels/ai_assistance/components/chatView.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,6 +793,9 @@ main {
793793
& .header-text {
794794
font: var(--sys-typescale-body4);
795795
color: var(--sys-color-on-surface);
796+
white-space: nowrap;
797+
overflow-x: hidden;
798+
text-overflow: ellipsis;
796799
}
797800

798801
& .arrow {
@@ -865,11 +868,11 @@ main {
865868
display: flex;
866869
align-items: center;
867870
gap: var(--sys-size-3);
868-
overflow: hidden;
871+
overflow-x: hidden;
869872

870873
.folder-name {
871874
white-space: nowrap;
872-
overflow: hidden;
875+
overflow-x: hidden;
873876
text-overflow: ellipsis;
874877
}
875878
}
@@ -878,7 +881,8 @@ main {
878881
display: flex;
879882
flex-direction: row;
880883
gap: var(--sys-size-2);
881-
overflow: hidden;
884+
max-width: 50%;
885+
min-width: 0;
882886
}
883887

884888
.info-tooltip-container {
@@ -904,6 +908,7 @@ main {
904908
align-items: center;
905909
gap: var(--sys-size-3);
906910
margin-left: auto;
911+
min-width: fit-content;
907912

908913
devtools-icon {
909914
/* var(--sys-size-8) is too small and var(--sys-size-9) is too big. */

0 commit comments

Comments
 (0)