LLM inference in C/C++
C++ ggml
ui : fix attachment text preview clipped when a line is longer than the container (#30806)
A-Raphieab7ed0d4b517
diff --git a/tools/ui/src/lib/components/app/content/SyntaxHighlightedCode.svelte b/tools/ui/src/lib/components/app/content/SyntaxHighlightedCode.svelteindex e88e0d4cdf..68c23ca6c7 100644--- a/tools/ui/src/lib/components/app/content/SyntaxHighlightedCode.svelte+++ b/tools/ui/src/lib/components/app/content/SyntaxHighlightedCode.svelte@@ -147,12 +147,19 @@.code-preview-wrapper pre {background: transparent;padding: 0;+ /* Stretch to the content's intrinsic width so a single long line+ propagates its overflow to this scrolling wrapper instead of being+ clipped at the wrapper's width with no way to scroll to it. */+ width: max-content;+ min-width: 100%;}.code-preview-wrapper code {background: transparent;display: block;padding: 0.5rem;+ width: max-content;+ min-width: 100%;}:global(.dark) .code-preview-wrapper {