ContextInjectionRow.module.css 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /* Figma 10:2482: 24px Tool calls header, 4px gap, 141px code block cap.
  2. SystemPromptRow reuses this sheet so both disclosures share one body. */
  3. .root {
  4. min-width: 0;
  5. }
  6. .root[data-open] {
  7. padding-bottom: 4px;
  8. }
  9. .chevron {
  10. color: var(--dsw-alias-label-secondary);
  11. }
  12. /* Separator and producer name beside the role title: ToolRow's summary geometry,
  13. so the two disclosure rows keep one 24px rhythm and one separator shape. */
  14. .sep {
  15. flex: none;
  16. width: 2px;
  17. height: 2px;
  18. margin: 0 8px;
  19. border-radius: 1px;
  20. background: var(--dsw-alias-label-caption);
  21. }
  22. .source {
  23. flex: none;
  24. min-width: 0;
  25. overflow: hidden;
  26. color: var(--dsw-alias-label-tertiary);
  27. font-size: var(--dsh-content-font-size-secondary, 13px);
  28. line-height: calc(24px + var(--dsh-content-font-delta, 0px));
  29. text-overflow: ellipsis;
  30. white-space: nowrap;
  31. }
  32. /* A notice's one-line account: the reason it rarely needs expanding. */
  33. .summary {
  34. flex: 1 1 auto;
  35. min-width: 0;
  36. overflow: hidden;
  37. color: var(--dsw-alias-label-tertiary);
  38. font-size: var(--dsh-content-font-size-secondary, 13px);
  39. line-height: calc(24px + var(--dsh-content-font-delta, 0px));
  40. text-overflow: ellipsis;
  41. white-space: nowrap;
  42. }
  43. .body {
  44. box-sizing: border-box;
  45. /* Indent under the title, which starts at leading (16 + delta) + gap 6. */
  46. width: calc(100% - 22px - var(--dsh-content-font-delta, 0px));
  47. max-height: 141px;
  48. margin: 4px 0 0 calc(22px + var(--dsh-content-font-delta, 0px));
  49. overflow: auto;
  50. padding: 10px 16px 12px 12px;
  51. border: none;
  52. border-radius: 8px;
  53. background: var(--dsw-alias-markdown-code-block);
  54. color: var(--dsw-alias-label-tertiary);
  55. /* Figma 10:2482 code text: the form bodies inherit it from the scrollport. */
  56. font: 400 11px/16px var(--ds-font-family-code);
  57. }