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:
@@ -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",
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user