fix(codebase): optimize layout paddings for code editor feel
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user