Skip to content

Commit 651b0ce

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[AI Assistance] Make the disclaimer take 2 lines
Allow for move vertical space when the width allows it Bug: none Change-Id: Iafcf30ed8d74fca87e46648154e8bcc540f0089e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6304707 Reviewed-by: Alex Rudenko <[email protected]> Commit-Queue: Alex Rudenko <[email protected]> Commit-Queue: Nikolay Vitkov <[email protected]> Auto-Submit: Nikolay Vitkov <[email protected]>
1 parent 48b651b commit 651b0ce

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

front_end/panels/ai_assistance/components/chatView.css

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,10 @@
6666
position: absolute;
6767
top: 0;
6868
left: -2px; /* Needed for aligning with other divider lines */
69-
width: calc(100% + 4px); /* Needed for extending the divider line to the edges */
69+
width: calc(
70+
100% + 4px
71+
); /* Needed for extending the divider line to the edges */
72+
7073
height: var(--sys-size-4);
7174

7275
& .input-form-shadow {
@@ -138,10 +141,9 @@
138141
}
139142

140143
.chat-input {
141-
--right-padding:
142-
calc(
143-
var(--sys-size-3) + 26px
144-
); /* Gap between the button and the edge + icon's width */
144+
--right-padding: calc(
145+
var(--sys-size-3) + 26px
146+
); /* Gap between the button and the edge + icon's width */
145147

146148
scrollbar-width: none;
147149
field-sizing: content; /* stylelint-disable-line property-no-unknown */
@@ -153,8 +155,7 @@
153155
font: var(--sys-typescale-body4-regular);
154156
line-height: 18px;
155157
min-height: var(--sys-size-11);
156-
padding:
157-
var(--sys-size-4) var(--right-padding) var(--sys-size-4)
158+
padding: var(--sys-size-4) var(--right-padding) var(--sys-size-4)
158159
var(--sys-size-4);
159160
color: var(--sys-color-on-surface);
160161
background-color: var(--sys-color-cdt-base-container);
@@ -184,9 +185,8 @@
184185
}
185186

186187
&.screenshot-button {
187-
--right-padding:
188-
calc(
189-
2*var(--sys-size-3) + 2*26px
188+
--right-padding: calc(
189+
2 * var(--sys-size-3) + 2 * 26px
190190
); /* Gaps because of right paddings + width of two icons */
191191
}
192192
}
@@ -219,7 +219,7 @@
219219
border-top: var(--sys-size-1) solid var(--sys-color-divider);
220220

221221
.disclaimer-text {
222-
max-width: var(--sys-size-36);
222+
max-width: var(--sys-size-38);
223223
color: var(--sys-color-on-surface-subtle);
224224
font: var(--sys-typescale-body5-regular);
225225
text-wrap: pretty;
@@ -442,7 +442,7 @@
442442
}
443443

444444
&:not(&[open]):hover::after {
445-
content: "";
445+
content: '';
446446
height: 100%;
447447
width: 100%;
448448
border-radius: inherit;
@@ -498,7 +498,7 @@
498498
}
499499

500500
summary::marker {
501-
content: "";
501+
content: '';
502502
}
503503

504504
.step-details {
@@ -612,12 +612,11 @@ main {
612612
height: var(--sys-size-14);
613613
width: var(--sys-size-14);
614614
border-radius: var(--sys-shape-corner-small);
615-
background:
616-
linear-gradient(
617-
135deg,
618-
var(--sys-color-gradient-primary),
619-
var(--sys-color-gradient-tertiary)
620-
);
615+
background: linear-gradient(
616+
135deg,
617+
var(--sys-color-gradient-primary),
618+
var(--sys-color-gradient-tertiary)
619+
);
621620
}
622621

623622
h1 {
@@ -692,12 +691,11 @@ main {
692691
border-radius: var(--sys-shape-corner-extra-small);
693692
width: var(--sys-size-9);
694693
height: var(--sys-size-9);
695-
background:
696-
linear-gradient(
697-
135deg,
698-
var(--sys-color-gradient-primary),
699-
var(--sys-color-gradient-tertiary)
700-
);
694+
background: linear-gradient(
695+
135deg,
696+
var(--sys-color-gradient-primary),
697+
var(--sys-color-gradient-tertiary)
698+
);
701699
margin-right: var(--sys-size-5);
702700

703701
devtools-icon {
@@ -752,12 +750,12 @@ main {
752750
}
753751

754752
&::marker {
755-
content: "";
753+
content: '';
756754
}
757755
}
758756

759757
&:not(&[open]):hover::after {
760-
content: "";
758+
content: '';
761759
height: 100%;
762760
width: 100%;
763761
border-radius: inherit;

0 commit comments

Comments
 (0)