The open-source app everyone uses to manage agents at work
TypeScript acpxagent-orchestrationagent-skillsagentic-aiai-agentsai-engineeringai-governanceai-toolsautonomous-agentsclaudeclaude-codeclaude-skillscodexhermesllmmcpmulti-agentopenclawproject-managementworkflow-automation
Refine issue markdown typography
Dottac2c63868e921
diff --git a/ui/src/components/MarkdownBody.tsx b/ui/src/components/MarkdownBody.tsxindex b996629a8e..f37d67677a 100644--- a/ui/src/components/MarkdownBody.tsx+++ b/ui/src/components/MarkdownBody.tsx@@ -117,7 +117,7 @@ export function MarkdownBody({ children, className }: MarkdownBodyProps) {return (<divclassName={cn(- "prose prose-sm max-w-none prose-p:my-2 prose-p:leading-[1.4] prose-ul:my-1.5 prose-ol:my-1.5 prose-li:my-0.5 prose-li:leading-[1.4] prose-pre:my-2 prose-pre:whitespace-pre-wrap prose-pre:break-words prose-headings:my-2 prose-headings:text-sm prose-blockquote:leading-[1.4] prose-table:my-2 prose-th:px-3 prose-th:py-1.5 prose-td:px-3 prose-td:py-1.5 prose-code:break-all [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_li]:list-item",+ "paperclip-markdown prose prose-sm max-w-none prose-pre:whitespace-pre-wrap prose-pre:break-words prose-code:break-all",theme === "dark" && "prose-invert",className,)}diff --git a/ui/src/index.css b/ui/src/index.cssindex 63a8c3dc28..a578f5d3c0 100644--- a/ui/src/index.css+++ b/ui/src/index.css@@ -426,6 +426,121 @@font-weight: 500;}+.paperclip-markdown {+ color: var(--foreground);+ font-size: 0.9375rem;+ line-height: 1.6;+}++.paperclip-markdown > :first-child {+ margin-top: 0;+}++.paperclip-markdown > :last-child {+ margin-bottom: 0;+}++.paperclip-markdown :where(p, ul, ol, blockquote, pre, table) {+ margin-top: 0.7rem;+ margin-bottom: 0.7rem;+}++.paperclip-markdown :where(ul, ol) {+ padding-left: 1.15rem;+}++.paperclip-markdown ul {+ list-style-type: disc;+}++.paperclip-markdown ol {+ list-style-type: decimal;+}++.paperclip-markdown li {+ margin: 0.14rem 0;+ padding-left: 0.2rem;+}++.paperclip-markdown li > :where(p, ul, ol) {+ margin-top: 0.3rem;+ margin-bottom: 0.3rem;+}++.paperclip-markdown li::marker {+ color: var(--muted-foreground);+}++.paperclip-markdown :where(h1, h2, h3, h4) {+ margin-top: 1.15rem;+ margin-bottom: 0.45rem;+ color: var(--foreground);+ font-weight: 600;+ letter-spacing: -0.01em;+ line-height: 1.3;+}++.paperclip-markdown h1 {+ font-size: 1.5rem;+}++.paperclip-markdown h2 {+ font-size: 1.25rem;+}++.paperclip-markdown h3 {+ font-size: 1.05rem;+}++.paperclip-markdown h4 {+ font-size: 0.95rem;+}++.paperclip-markdown :where(strong, b) {+ color: var(--foreground);+ font-weight: 600;+}++.paperclip-markdown a {+ color: color-mix(in oklab, var(--foreground) 76%, #0969da 24%);+ text-decoration: none;+}++.paperclip-markdown a:hover {+ text-decoration: underline;+ text-underline-offset: 0.15em;+}++.dark .paperclip-markdown a {+ color: color-mix(in oklab, var(--foreground) 80%, #58a6ff 20%);+}++.paperclip-markdown blockquote {+ margin-left: 0;+ padding-left: 0.95rem;+ border-left: 0.24rem solid color-mix(in oklab, var(--border) 84%, var(--muted-foreground) 16%);+ color: var(--muted-foreground);+}++.paperclip-markdown hr {+ margin: 1.25rem 0;+ border-color: var(--border);+}++.paperclip-markdown img {+ border: 1px solid var(--border);+ border-radius: calc(var(--radius) + 2px);+}++.paperclip-markdown table {+ width: 100%;+}++.paperclip-markdown th {+ font-weight: 600;+ text-align: left;+}+.paperclip-mermaid {margin: 0.5rem 0;padding: 0.45rem 0.55rem;diff --git a/ui/src/pages/IssueDetail.tsx b/ui/src/pages/IssueDetail.tsxindex a0266c1613..d9e0a7efb6 100644--- a/ui/src/pages/IssueDetail.tsx+++ b/ui/src/pages/IssueDetail.tsx@@ -661,7 +661,7 @@ export function IssueDetail() {value={issue.description ?? ""}onSave={(description) => updateIssue.mutate({ description })}as="p"- className="text-sm text-muted-foreground"+ className="text-[15px] leading-7 text-foreground"placeholder="Add a description..."multilinementions={mentionOptions}