diff --git a/ui/desktop/src/components/MarkdownContent.tsx b/ui/desktop/src/components/MarkdownContent.tsx index c4ee7037ea85..26c63fe31c23 100644 --- a/ui/desktop/src/components/MarkdownContent.tsx +++ b/ui/desktop/src/components/MarkdownContent.tsx @@ -8,10 +8,6 @@ import { oneLight } from 'react-syntax-highlighter/dist/cjs/styles/prism'; import { Check, Copy } from './icons'; import { visit } from 'unist-util-visit'; -const UrlTransform = { - a: ({ node, ...props }) => , -}; - function rehypeinlineCodeProperty() { return function (tree) { if (!tree) return; @@ -86,7 +82,7 @@ export default function MarkdownContent({ content, className = '' }: MarkdownCon , code({ node, className, children, inlinecode, ...props }) { const match = /language-(\w+)/.exec(className || 'language-text'); return inlinecode == 'false' && match ? ( @@ -104,17 +108,12 @@ export default function MarkdownContent({ content, className = '' }: MarkdownCon ) : ( {children} ); }, - // h3: 'div', - h3(props) { - const { node, ...rest } = props; - return
; - }, }} > {content} diff --git a/ui/desktop/src/components/UserMessage.tsx b/ui/desktop/src/components/UserMessage.tsx index 06b4b831ab0a..b6ab90143216 100644 --- a/ui/desktop/src/components/UserMessage.tsx +++ b/ui/desktop/src/components/UserMessage.tsx @@ -24,7 +24,10 @@ export default function UserMessage({ message }: UserMessageProps) {
- +
diff --git a/ui/desktop/src/styles/main.css b/ui/desktop/src/styles/main.css index 2fcf0167f52a..a67c69c50782 100644 --- a/ui/desktop/src/styles/main.css +++ b/ui/desktop/src/styles/main.css @@ -5,34 +5,34 @@ /* Cash Sans */ @font-face { - font-family: Cash Sans; - src: url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff2/CashSans-Regular.woff2) - format('woff2'); + font-family: 'Cash Sans'; + src: + url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff2/CashSans-Regular.woff2) + format('woff2'), + url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff/CashSans-Regular.woff) + format('woff'); font-weight: 400; font-style: normal; } @font-face { - font-family: Cash Sans; - src: url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff2/CashSans-Medium.woff2) - format('woff2'); + font-family: 'Cash Sans'; + src: + url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff2/CashSans-Medium.woff2) + format('woff2'), + url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff/CashSans-Medium.woff) format('woff'); font-weight: 500; font-style: normal; } @font-face { - font-family: Cash Sans; - src: url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff2/CashSans-Semibold.woff2) - format('woff2'); - font-weight: 600; - font-style: normal; -} - -@font-face { - font-family: Cash Sans; - src: url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff2/CashSans-Bold.woff2) - format('woff2'); - font-weight: 700; + font-family: 'Cash Sans Mono'; + src: + url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff2/CashSansMono-Regular.woff2) + format('woff2'), + url(https://cash-f.squarecdn.com/static/fonts/cashsans/woff/CashSansMono-Regular.woff) + format('woff'); + font-weight: 400; font-style: normal; } @@ -245,6 +245,7 @@ word-wrap: break-word; word-break: break-word; } + .titlebar-drag-region { -webkit-app-region: drag; height: 32px; @@ -261,8 +262,10 @@ .bg-inline-code { border-radius: 4px; - color: rgba(255, 130, 130, 0.85); - font-family: 'Square Sans Mono'; + color: rgb(255 119 43); + background-color: var(--background-app); + border: 1px solid var(--border-subtle); + font-family: 'Cash Sans Mono', monospace; font-size: 12px; font-style: normal; font-weight: 400; @@ -286,7 +289,7 @@ content: ''; } - .dark .bg-inline-code { - color: rgba(248, 155, 89, 0.7); + .user-message p { + margin-bottom: 0 !important; } } diff --git a/ui/desktop/tailwind.config.ts b/ui/desktop/tailwind.config.ts index 0309b53ce272..89f06f79eb1d 100644 --- a/ui/desktop/tailwind.config.ts +++ b/ui/desktop/tailwind.config.ts @@ -7,6 +7,7 @@ export default { extend: { fontFamily: { sans: ['Cash Sans', 'sans-serif'], + mono: ['Cash Sans Mono', 'monospace'], }, keyframes: { shimmer: { @@ -73,6 +74,13 @@ export default { blockTeal: 'var(--block-teal)', blockOrange: 'var(--block-orange)', }, + typography: { + DEFAULT: { + css: { + color: 'var(--text-standard)', + }, + }, + }, }, }, };