Skip to content

Commit 3710d25

Browse files
Samiya CaurDevtools-frontend LUCI CQ
authored andcommitted
[AiAssistant] Fix max width and focus ring issues with image input
Fixed: 399091160, 399064894 Change-Id: Ie3f600fb8519bf27fda081169211cb6f237d54de Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6304519 Commit-Queue: Samiya Caur <[email protected]> Auto-Submit: Samiya Caur <[email protected]> Reviewed-by: Ergün Erdoğmuş <[email protected]>
1 parent 5eef8d5 commit 3710d25

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

front_end/panels/ai_assistance/components/chatView.css

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
img {
135135
margin: var(--sys-size-4) 0;
136136
max-height: var(--sys-size-18);
137+
max-width: 100%;
137138
border: 1px solid var(--sys-color-neutral-outline);
138139
border-radius: var(--sys-shape-corner-small);
139140
}
@@ -291,16 +292,19 @@
291292
color: var(--sys-color-on-surface-subtle);
292293
}
293294

294-
img {
295-
margin: var(--sys-size-4) 0;
296-
max-height: var(--sys-size-20);
297-
border-radius: var(--sys-shape-corner-small);
298-
border: 1px solid var(--sys-color-neutral-outline);
299-
width: fit-content;
300-
}
301-
302295
.image-link {
303296
width: fit-content;
297+
border-radius: var(--sys-shape-corner-small);
298+
outline-offset: var(--sys-size-2);
299+
300+
img {
301+
max-height: var(--sys-size-20);
302+
max-width: 100%;
303+
border-radius: var(--sys-shape-corner-small);
304+
border: 1px solid var(--sys-color-neutral-outline);
305+
width: fit-content;
306+
vertical-align: bottom;
307+
}
304308
}
305309
}
306310

@@ -501,6 +505,10 @@
501505
content: '';
502506
}
503507

508+
summary {
509+
border-radius: var(--sys-size-6);
510+
}
511+
504512
.step-details {
505513
padding: 0 var(--sys-size-5) var(--sys-size-4) var(--sys-size-12);
506514
display: flex;

0 commit comments

Comments
 (0)