fix(codebase): perfectly align left file tree header and right preview header

This commit is contained in:
2026-06-14 13:56:33 -07:00
parent a695f74132
commit 6057fb91c1
2 changed files with 7 additions and 1 deletions

View File

@@ -408,11 +408,13 @@ const railGroupHeader: React.CSSProperties = {
display: "flex",
alignItems: "center",
justifyContent: "space-between",
padding: "20px 20px 12px 20px",
padding: "10px 20px",
position: "sticky",
top: 0,
background: THEME.cardBg,
zIndex: 10,
height: "41px",
boxSizing: "border-box",
};
const railGroupTitle: React.CSSProperties = {
fontSize: "0.95rem",

View File

@@ -154,6 +154,8 @@ export function GiteaFileViewer({ projectId, path }: GiteaFileViewerProps) {
padding: "10px 16px",
background: THEME.subtleBg,
borderBottom: `1px solid ${THEME.borderSoft}`,
height: "41px",
boxSizing: "border-box",
}}
>
<div
@@ -270,6 +272,8 @@ function Centered({
padding: "10px 16px",
background: THEME.subtleBg,
borderBottom: `1px solid ${THEME.borderSoft}`,
height: "41px",
boxSizing: "border-box",
}}
>
<div