mirror of
https://github.com/zadam/trilium.git
synced 2026-05-21 00:41:56 +02:00
chore(llm): improve tool card slightly
This commit is contained in:
@@ -55,17 +55,13 @@
|
||||
color: var(--main-text-color);
|
||||
}
|
||||
|
||||
.llm-chat-tool-call-input,
|
||||
.llm-chat-tool-call-result {
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.llm-chat-tool-call-input strong,
|
||||
.llm-chat-tool-call-result strong {
|
||||
display: block;
|
||||
font-size: 0.75rem;
|
||||
color: var(--muted-text-color);
|
||||
margin-bottom: 0.25rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.llm-chat-tool-call pre {
|
||||
@@ -176,9 +172,9 @@
|
||||
}
|
||||
|
||||
.llm-chat-tool-call-table td {
|
||||
padding: 0.25rem 0.5rem;
|
||||
padding: 0.25rem 0;
|
||||
padding-right: 0.75rem;
|
||||
vertical-align: top;
|
||||
border-bottom: 1px solid var(--main-border-color);
|
||||
}
|
||||
|
||||
.llm-chat-tool-call-table tr:last-child td {
|
||||
@@ -188,6 +184,7 @@
|
||||
.llm-chat-tool-call-table-key {
|
||||
font-weight: 600;
|
||||
white-space: nowrap;
|
||||
width: 0;
|
||||
color: var(--muted-text-color);
|
||||
}
|
||||
|
||||
|
||||
@@ -171,12 +171,12 @@ export default function ToolCallCard({ toolCall }: { toolCall: ToolCall }) {
|
||||
</summary>
|
||||
<div className="llm-chat-tool-call-inline-body">
|
||||
<div className="llm-chat-tool-call-input">
|
||||
<strong>{t("llm_chat.input")}:</strong>
|
||||
<strong>{t("llm_chat.input")}</strong>
|
||||
<KeyValueTable data={toolCall.input} />
|
||||
</div>
|
||||
{toolCall.result && (
|
||||
<div className={`llm-chat-tool-call-result ${toolCall.isError ? "llm-chat-tool-call-result-error" : ""}`}>
|
||||
<strong>{toolCall.isError ? t("llm_chat.error") : t("llm_chat.result")}:</strong>
|
||||
<strong>{toolCall.isError ? t("llm_chat.error") : t("llm_chat.result")}</strong>
|
||||
<KeyValueTable data={toolCall.result} />
|
||||
</div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user