Spaces:
Sleeping
Sleeping
toggle tool call expanders
Browse files- web/src/App.css +51 -9
web/src/App.css
CHANGED
|
@@ -546,19 +546,43 @@ body {
|
|
| 546 |
letter-spacing: 0.5px;
|
| 547 |
}
|
| 548 |
|
| 549 |
-
|
|
|
|
| 550 |
background: #1a1614;
|
| 551 |
-
padding: 1rem;
|
| 552 |
margin-top: 0.5rem;
|
| 553 |
border: 1px solid #3a342e;
|
| 554 |
border-radius: 6px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 555 |
}
|
| 556 |
|
| 557 |
-
.tool-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 558 |
display: flex;
|
| 559 |
justify-content: space-between;
|
| 560 |
align-items: center;
|
| 561 |
-
|
| 562 |
}
|
| 563 |
|
| 564 |
.tool-name {
|
|
@@ -567,15 +591,31 @@ body {
|
|
| 567 |
font-size: 0.9rem;
|
| 568 |
}
|
| 569 |
|
| 570 |
-
.
|
| 571 |
-
|
|
|
|
| 572 |
}
|
| 573 |
|
| 574 |
-
|
| 575 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 576 |
}
|
| 577 |
|
| 578 |
-
.tool-
|
| 579 |
background: #211d1a;
|
| 580 |
padding: 0.75rem;
|
| 581 |
overflow-x: auto;
|
|
@@ -584,6 +624,8 @@ body {
|
|
| 584 |
color: #c9b8a3;
|
| 585 |
border-radius: 4px;
|
| 586 |
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
|
|
|
|
|
|
|
| 587 |
}
|
| 588 |
|
| 589 |
.typing-indicator {
|
|
|
|
| 546 |
letter-spacing: 0.5px;
|
| 547 |
}
|
| 548 |
|
| 549 |
+
/* Tool call expander - closed by default */
|
| 550 |
+
details.tool-call {
|
| 551 |
background: #1a1614;
|
|
|
|
| 552 |
margin-top: 0.5rem;
|
| 553 |
border: 1px solid #3a342e;
|
| 554 |
border-radius: 6px;
|
| 555 |
+
transition: background 0.2s ease;
|
| 556 |
+
}
|
| 557 |
+
|
| 558 |
+
details.tool-call[open] {
|
| 559 |
+
background: #1f1b18;
|
| 560 |
+
}
|
| 561 |
+
|
| 562 |
+
/* Clickable summary header */
|
| 563 |
+
details.tool-call summary {
|
| 564 |
+
cursor: pointer;
|
| 565 |
+
padding: 1rem;
|
| 566 |
+
user-select: none;
|
| 567 |
+
list-style: none;
|
| 568 |
+
transition: background 0.2s ease;
|
| 569 |
}
|
| 570 |
|
| 571 |
+
details.tool-call summary:hover {
|
| 572 |
+
background: rgba(139, 115, 85, 0.1);
|
| 573 |
+
}
|
| 574 |
+
|
| 575 |
+
/* Hide default disclosure triangle */
|
| 576 |
+
details.tool-call summary::-webkit-details-marker {
|
| 577 |
+
display: none;
|
| 578 |
+
}
|
| 579 |
+
|
| 580 |
+
/* Tool call header styling */
|
| 581 |
+
.tool-call-header {
|
| 582 |
display: flex;
|
| 583 |
justify-content: space-between;
|
| 584 |
align-items: center;
|
| 585 |
+
gap: 1rem;
|
| 586 |
}
|
| 587 |
|
| 588 |
.tool-name {
|
|
|
|
| 591 |
font-size: 0.9rem;
|
| 592 |
}
|
| 593 |
|
| 594 |
+
.checkmark {
|
| 595 |
+
color: #7d9d7a;
|
| 596 |
+
font-size: 1rem;
|
| 597 |
}
|
| 598 |
|
| 599 |
+
/* Content area (hidden when closed) */
|
| 600 |
+
.tool-call-content {
|
| 601 |
+
padding: 0 1rem 1rem 1rem;
|
| 602 |
+
border-top: 1px solid #3a342e;
|
| 603 |
+
}
|
| 604 |
+
|
| 605 |
+
.tool-section {
|
| 606 |
+
margin-top: 0.75rem;
|
| 607 |
+
}
|
| 608 |
+
|
| 609 |
+
.tool-section-label {
|
| 610 |
+
color: #8b7355;
|
| 611 |
+
font-size: 0.8rem;
|
| 612 |
+
font-weight: 600;
|
| 613 |
+
margin-bottom: 0.5rem;
|
| 614 |
+
text-transform: uppercase;
|
| 615 |
+
letter-spacing: 0.5px;
|
| 616 |
}
|
| 617 |
|
| 618 |
+
.tool-code, .tool-output {
|
| 619 |
background: #211d1a;
|
| 620 |
padding: 0.75rem;
|
| 621 |
overflow-x: auto;
|
|
|
|
| 624 |
color: #c9b8a3;
|
| 625 |
border-radius: 4px;
|
| 626 |
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
|
| 627 |
+
white-space: pre-wrap;
|
| 628 |
+
word-break: break-word;
|
| 629 |
}
|
| 630 |
|
| 631 |
.typing-indicator {
|