fix(codebase): adjust code viewer spacing, font size, and line number colors to match design reference
This commit is contained in:
@@ -221,19 +221,21 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) {
|
|||||||
style={oneLight}
|
style={oneLight}
|
||||||
customStyle={{
|
customStyle={{
|
||||||
margin: 0,
|
margin: 0,
|
||||||
padding: "16px",
|
padding: "24px 16px 24px 0",
|
||||||
background: THEME.cardBg,
|
background: THEME.cardBg,
|
||||||
fontSize: "0.8rem",
|
fontSize: "13px",
|
||||||
|
lineHeight: "24px",
|
||||||
fontFamily:
|
fontFamily:
|
||||||
"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",
|
'"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace',
|
||||||
flex: 1,
|
flex: 1,
|
||||||
}}
|
}}
|
||||||
showLineNumbers={true}
|
showLineNumbers={true}
|
||||||
lineNumberStyle={{
|
lineNumberStyle={{
|
||||||
minWidth: "3em",
|
minWidth: "48px",
|
||||||
paddingRight: "1em",
|
paddingRight: "24px",
|
||||||
color: THEME.muted,
|
color: "#94a3b8",
|
||||||
textAlign: "right",
|
textAlign: "right",
|
||||||
|
userSelect: "none",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{content || ""}
|
{content || ""}
|
||||||
|
|||||||
Reference in New Issue
Block a user