fix(codebase): optimize layout paddings for code editor feel

This commit is contained in:
2026-06-14 13:32:25 -07:00
parent 3a884fe28d
commit e06ad16aab
2 changed files with 174 additions and 194 deletions

View File

@@ -144,10 +144,6 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) {
minHeight: 0,
position: "relative",
background: THEME.cardBg,
border: `1px solid ${THEME.border}`,
borderRadius: THEME.radiusSm,
boxShadow: THEME.shadow,
overflow: "hidden",
}}
>
<div
@@ -155,20 +151,19 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) {
display: "flex",
justifyContent: "space-between",
alignItems: "center",
padding: "8px 12px",
padding: "10px 16px",
background: THEME.subtleBg,
borderBottom: `1px solid ${THEME.borderSoft}`,
}}
>
<div
style={{
fontSize: "0.8rem",
fontSize: "0.85rem",
color: THEME.mid,
fontFamily: "ui-monospace, monospace",
fontWeight: 500,
}}
>
{basename(path)}
{path}
</div>
{!isImage && (
<button