fix code block bleed alignment and line numbers

- Fixed --ll-bleed to 44px (8px padding + 36px line-number width, border-box)
- Line numbers fixed width 36px (always fits 3 digits, no layout shift)
- Line number opacity increased from 0.15 to 0.3 in both light and dark mode
- Commented out code block background
This commit is contained in:
Tommy D. Rossi
2026-02-20 12:57:41 +01:00
parent acd63a9235
commit a7ab6708ef
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -363,7 +363,7 @@ export function CodeBlock({ children, lang = "jsx" }: { children: string; lang?:
<pre
className="overflow-x-auto"
style={{
background: "var(--ll-code-bg)",
// background: "var(--ll-code-bg)",
borderRadius: "8px",
margin: 0,
padding: 0,
@@ -389,7 +389,7 @@ export function CodeBlock({ children, lang = "jsx" }: { children: string; lang?:
color: "var(--ll-code-line-nr)",
textAlign: "right",
paddingRight: "20px",
minWidth: "28px",
width: "36px",
userSelect: "none",
}}
>