From cebb938ee066f63ad1e3042197a6b227d48fb0c9 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 23 Nov 2024 14:25:48 +0000 Subject: [PATCH 1/2] Fix issue #5186: [Bug]: Fix up inline code styles in chat window --- frontend/src/index.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index a8d6571ed1e1..b6c3bda513cb 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -30,10 +30,12 @@ code { .markdown-body code { padding: 0.2em 0.4em; margin: 0; - font-size: 85%; + font-size: 90%; white-space: break-spaces; - background-color: var(--bg-neutral-muted); - border-radius: 6px; + background-color: var(--bg-editor-sidebar); + border-radius: 4px; + color: var(--text-editor-active); + border: 1px solid var(--border-editor-sidebar); } .markdown-body pre code { From 32bdb1b8ce788f7833b93a23d7d8b423e61f4c40 Mon Sep 17 00:00:00 2001 From: openhands Date: Sat, 23 Nov 2024 18:36:03 +0000 Subject: [PATCH 2/2] Fix pr #5226: Fix issue #5186: [Bug]: Fix up inline code styles in chat window --- frontend/src/index.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/index.css b/frontend/src/index.css index b6c3bda513cb..6a2eb49d2111 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -30,12 +30,13 @@ code { .markdown-body code { padding: 0.2em 0.4em; margin: 0; - font-size: 90%; + font-size: 85%; white-space: break-spaces; - background-color: var(--bg-editor-sidebar); + background-color: #1a1e24; border-radius: 4px; - color: var(--text-editor-active); - border: 1px solid var(--border-editor-sidebar); + color: #e6edf3; + border: 1px solid #30363d; + letter-spacing: -0.2px; } .markdown-body pre code {