fix(chat): align code block actions and restore horizontal scrolling across desktop and mobile (#564)

* fix(chat): use streamdown code controls for markdown blocks

* fix(chat): keep code block actions in header row and body scrollable

* fix(chat): allow horizontal scrolling in virtualized code output

* fix(chat): preserve mobile horizontal scrolling in code blocks

* fix: refine chat code block header and actions styling

* fix: restore themed code highlighting and polish chat code blocks

---------

Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
Nelson Pires
2026-03-01 15:54:02 +02:00
committed by GitHub
co-authored by Bohdan Triapitsyn
parent 655b5ba823
commit 73e533a315
4 changed files with 173 additions and 63 deletions
+7
View File
@@ -150,6 +150,13 @@
-webkit-overflow-scrolling: touch;
}
/* Keep Streamdown code blocks horizontally scrollable on mobile. */
:root.mobile-pointer:not(.desktop-runtime) .streamdown-content [data-streamdown="code-block-body"] {
overflow-x: auto !important;
overflow-y: hidden !important;
-webkit-overflow-scrolling: touch;
}
/* Fix mobile viewport height */
:root.mobile-pointer:not(.desktop-runtime),
:root.mobile-pointer:not(.desktop-runtime) body {