Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,27 @@ export interface ToolCallInfo {
changeDetection: ChangeDetectionStrategy.OnPush,
styles: [CHAT_HOST_TOKENS, `
:host { display: block; }
.tcc__name { font-family: var(--ngaf-chat-font-mono); color: var(--ngaf-chat-text); }
.tcc__name {
font-family: var(--ngaf-chat-font-mono);
font-size: var(--ngaf-chat-font-size-sm, 13px);
color: var(--ngaf-chat-text-muted);
font-weight: 400;
padding-left: 2px;
}
.tcc__pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 1px 7px;
gap: 3px;
padding: 1px 6px;
border-radius: 9999px;
background: var(--ngaf-chat-surface-alt);
color: var(--ngaf-chat-text-muted);
font-size: 11px;
font-weight: 600;
font-size: 10px;
font-weight: 500;
margin-left: 6px;
line-height: 1.4;
}
.tcc__pill[data-status="complete"] { color: var(--ngaf-chat-success); }
.tcc__pill[data-status="error"] { color: var(--ngaf-chat-error-text); }
.tcc__pill svg { width: 11px; height: 11px; }
.tcc__pill svg { width: 10px; height: 10px; }
.tcc__pill[data-status="running"] svg { animation: tcc-spin 0.8s linear infinite; }
@keyframes tcc-spin { to { transform: rotate(360deg); } }
.tcc__section { padding: 8px 0; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,17 @@ describe('ChatToolCallsComponent — excludeToolNames filter', () => {
expect(text).not.toContain('research');
});
});

describe('ChatToolCallsComponent — breathing room before downstream content', () => {
it('host has bottom margin >= 16px so the next sibling gets clear separation', () => {
TestBed.configureTestingModule({ imports: [FilterHost] });
const fx = TestBed.createComponent(FilterHost);
fx.detectChanges();
const host = fx.nativeElement.querySelector('chat-tool-calls') as HTMLElement;
document.body.appendChild(host);
const computed = getComputedStyle(host);
const marginBottom = parseFloat(computed.marginBottom || '0');
expect(marginBottom).toBeGreaterThanOrEqual(16);
document.body.removeChild(host);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ interface Group {
imports: [NgTemplateOutlet, ChatToolCallCardComponent],
changeDetection: ChangeDetectionStrategy.OnPush,
styles: [`
:host { display: block; }
:host { display: block; margin-bottom: 20px; }
.ctc__group {
border: 1px solid var(--ngaf-chat-separator);
border-radius: var(--ngaf-chat-radius-card);
margin: 0 0 8px;
margin: 0 0 4px;
}
.ctc__group-header {
display: flex;
Expand Down
Loading