|
5 | 5 | } |
6 | 6 |
|
7 | 7 | .prompt-input-wrapper { |
| 8 | + --prompt-input-compact-height: 104px; |
8 | 9 | @apply grid items-stretch; |
9 | 10 | grid-template-columns: minmax(0, 1fr) 72px 64px; |
10 | 11 | gap: 0; |
11 | 12 | padding: 0; |
12 | 13 | } |
13 | 14 |
|
| 15 | +.prompt-input-main { |
| 16 | + min-width: 0; |
| 17 | +} |
| 18 | + |
14 | 19 | .prompt-input-actions { |
15 | 20 | @apply flex flex-col items-center; |
16 | 21 | align-self: stretch; |
|
47 | 52 | .prompt-input { |
48 | 53 | @apply w-full pt-2.5 border text-sm resize-none outline-none transition-colors; |
49 | 54 | padding-inline-start: 0.75rem; |
50 | | - padding-inline-end: 0.75rem; |
| 55 | + padding-inline-end: 4.5rem; |
51 | 56 | font-family: inherit; |
52 | 57 | background-color: var(--surface-base); |
53 | 58 | color: var(--text-primary); |
|
153 | 158 | cursor: not-allowed; |
154 | 159 | } |
155 | 160 |
|
| 161 | +.prompt-clear-button-inline { |
| 162 | + position: absolute; |
| 163 | + top: 2.5rem; |
| 164 | + inset-inline-end: 0.5rem; |
| 165 | + z-index: 2; |
| 166 | +} |
| 167 | + |
| 168 | +.prompt-expand-button-inline { |
| 169 | + position: absolute; |
| 170 | + top: 0.5rem; |
| 171 | + inset-inline-end: 0.5rem; |
| 172 | + z-index: 2; |
| 173 | +} |
| 174 | + |
156 | 175 | .prompt-overlay-text { |
157 | 176 | display: inline-flex; |
158 | 177 | align-items: center; |
|
403 | 422 | } |
404 | 423 | } |
405 | 424 |
|
406 | | -@media (max-width: 1279px) { |
407 | | - :root { |
408 | | - --prompt-input-compact-height: 104px; |
409 | | - } |
| 425 | +.session-center-column[data-session-center-width="medium"] .prompt-input-wrapper, |
| 426 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-wrapper { |
| 427 | + min-height: var(--prompt-input-compact-height); |
| 428 | +} |
410 | 429 |
|
411 | | - .prompt-input-wrapper { |
412 | | - min-height: var(--prompt-input-compact-height); |
413 | | - } |
| 430 | +.session-center-column[data-session-center-width="medium"] .prompt-input-field-container, |
| 431 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-field-container { |
| 432 | + min-height: var(--prompt-input-compact-height); |
| 433 | + height: var(--prompt-input-compact-height); |
| 434 | +} |
414 | 435 |
|
415 | | - .prompt-input-field-container { |
416 | | - min-height: var(--prompt-input-compact-height); |
417 | | - height: var(--prompt-input-compact-height); |
418 | | - } |
| 436 | +.session-center-column[data-session-center-width="medium"] .prompt-input-field, |
| 437 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-field { |
| 438 | + height: var(--prompt-input-compact-height); |
| 439 | +} |
419 | 440 |
|
420 | | - .prompt-input-field { |
421 | | - height: var(--prompt-input-compact-height); |
422 | | - } |
| 441 | +.session-center-column[data-session-center-width="medium"] .prompt-input-field-container.is-expanded, |
| 442 | +.session-center-column[data-session-center-width="medium"] .prompt-input-field.is-expanded, |
| 443 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-field-container.is-expanded, |
| 444 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-field.is-expanded { |
| 445 | + height: auto; |
| 446 | +} |
423 | 447 |
|
424 | | - .prompt-input-field-container.is-expanded, |
425 | | - .prompt-input-field.is-expanded { |
426 | | - height: auto; |
427 | | - } |
| 448 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-wrapper { |
| 449 | + grid-template-columns: minmax(0, 1fr) auto; |
| 450 | + grid-template-areas: |
| 451 | + "field field" |
| 452 | + "actions primary"; |
428 | 453 | } |
429 | 454 |
|
430 | | -@media (max-width: 720px) { |
431 | | - .prompt-input-wrapper { |
432 | | - grid-template-columns: minmax(0, 1fr) 64px 40px; |
433 | | - } |
| 455 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-main { |
| 456 | + grid-area: field; |
| 457 | +} |
| 458 | + |
| 459 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-actions { |
| 460 | + grid-area: actions; |
| 461 | + flex-direction: row; |
| 462 | + align-items: center; |
| 463 | + justify-content: flex-start; |
| 464 | + height: auto; |
| 465 | + padding: 0.25rem 0.5rem 0.5rem; |
| 466 | +} |
| 467 | + |
| 468 | +.session-center-column[data-session-center-width="narrow"] .prompt-input-primary-actions { |
| 469 | + grid-area: primary; |
| 470 | + flex-direction: row; |
| 471 | + align-items: center; |
| 472 | + justify-content: flex-end; |
| 473 | + width: auto; |
| 474 | + height: auto; |
| 475 | + padding: 0.25rem 0.5rem 0.5rem 0; |
| 476 | + border-inline-start: none; |
| 477 | +} |
| 478 | + |
| 479 | +.session-center-column[data-session-center-width="narrow"] .prompt-nav-buttons { |
| 480 | + justify-content: flex-start; |
| 481 | + gap: 0.25rem; |
| 482 | +} |
| 483 | + |
| 484 | +.session-center-column[data-session-center-width="narrow"] .prompt-nav-column { |
| 485 | + flex-direction: row; |
| 486 | + align-items: center; |
| 487 | + min-width: 0; |
| 488 | + gap: 0.25rem; |
434 | 489 | } |
435 | 490 |
|
436 | 491 | @media (max-width: 640px) { |
437 | 492 | .prompt-input { |
438 | 493 | min-height: 0; |
439 | 494 | padding: 0.5rem 0.75rem; |
| 495 | + padding-inline-end: 4.5rem; |
440 | 496 | padding-bottom: 0.75rem; |
441 | 497 | } |
442 | 498 |
|
|
0 commit comments