mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
style(desktop): hold the delegation card to three-quarter width
A list of short rows — goal, model, timer — reads better narrow than stretched across the full reading column. Scoped in styles.css rather than as a utility: the rule above it sets width on every tool block and wins over one.
This commit is contained in:
parent
2818c9e514
commit
dc50ddbbd6
2 changed files with 9 additions and 1 deletions
|
|
@ -149,7 +149,7 @@ export const DelegateTool: FC<Pick<ToolPart, 'args' | 'result' | 'toolCallId'>>
|
|||
}
|
||||
|
||||
return (
|
||||
<div className="grid min-w-0 max-w-full gap-(--tool-row-gap)" data-slot="tool-block">
|
||||
<div className="grid min-w-0 gap-(--tool-row-gap)" data-delegate-card="" data-slot="tool-block">
|
||||
{rows.map(row => (
|
||||
<DelegateRowView key={row.id} row={row} />
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -1331,6 +1331,14 @@ text-* variant utilities. */ .btn-arc {
|
|||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* A delegation is a list of short rows — goal, model, timer — not prose, so it
|
||||
reads better narrow than stretched across the full reading column. Scoped
|
||||
here rather than as a utility on the element: the rule above sets width on
|
||||
every tool block and would win over it. */
|
||||
[data-slot='aui_assistant-message-content'] [data-slot='tool-block'][data-delegate-card] {
|
||||
max-width: 75%;
|
||||
}
|
||||
|
||||
[data-slot='aui_assistant-message-content'] .aui-md [data-streamdown='code-block'] code {
|
||||
max-width: none;
|
||||
font-family: inherit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue