fix(hub): render AI coach summary and chat as Markdown
Reuse shared ai_review_render.js so summaries and coach replies display formatted lists and bold text instead of raw syntax. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -3513,6 +3513,68 @@ body.hub-page-ai #page-ai {
|
||||
overflow-wrap: anywhere;
|
||||
word-break: break-word;
|
||||
}
|
||||
.ai-md-body.ai-result-md,
|
||||
.ai-bubble-assistant.ai-result-md {
|
||||
white-space: normal;
|
||||
}
|
||||
.ai-result-md p {
|
||||
margin: 6px 0;
|
||||
color: var(--text);
|
||||
}
|
||||
.ai-result-md ul,
|
||||
.ai-result-md ol {
|
||||
margin: 6px 0 8px 1.25em;
|
||||
padding: 0;
|
||||
}
|
||||
.ai-result-md li {
|
||||
margin: 5px 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.ai-result-md strong {
|
||||
color: var(--text);
|
||||
font-weight: 600;
|
||||
}
|
||||
.ai-result-md h2 {
|
||||
font-size: 1.02rem;
|
||||
color: var(--accent-2, var(--accent));
|
||||
margin: 14px 0 8px;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
}
|
||||
.ai-result-md h3,
|
||||
.ai-result-md h4 {
|
||||
font-size: 0.92rem;
|
||||
color: var(--accent-2, var(--accent));
|
||||
margin: 10px 0 6px;
|
||||
}
|
||||
.ai-result-md code {
|
||||
background: color-mix(in srgb, var(--inset-surface) 70%, var(--border-soft));
|
||||
padding: 1px 4px;
|
||||
border-radius: 4px;
|
||||
font-size: 0.82em;
|
||||
}
|
||||
.ai-result-md .md-raw-block-title {
|
||||
margin-top: 14px;
|
||||
padding-top: 10px;
|
||||
border-top: 1px dashed var(--border-soft);
|
||||
color: var(--muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
.ai-bubble-assistant.ai-result-md p {
|
||||
margin: 4px 0;
|
||||
}
|
||||
.ai-bubble-assistant.ai-result-md h2,
|
||||
.ai-bubble-assistant.ai-result-md h3,
|
||||
.ai-bubble-assistant.ai-result-md h4 {
|
||||
margin: 8px 0 4px;
|
||||
font-size: 0.92rem;
|
||||
border-bottom: none;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
.ai-bubble-assistant.ai-result-md ul,
|
||||
.ai-bubble-assistant.ai-result-md ol {
|
||||
margin: 4px 0 6px 1.15em;
|
||||
}
|
||||
.ai-placeholder {
|
||||
color: var(--muted);
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user