优化侧边栏变更区域无数据时的显示样式

This commit is contained in:
xintaofei
2026-03-13 23:41:59 +08:00
parent 39b72819ae
commit 59e3ae624c

View File

@@ -1196,8 +1196,10 @@ export function GitChangesTab() {
<> <>
<div className="h-full min-h-0 overflow-y-auto"> <div className="h-full min-h-0 overflow-y-auto">
{trackedChanges.length === 0 && untrackedChanges.length === 0 ? ( {trackedChanges.length === 0 && untrackedChanges.length === 0 ? (
<div className="px-2 py-2 text-xs text-muted-foreground"> <div className="flex items-center justify-center h-full p-4">
{t("noChanges")} <p className="text-xs text-muted-foreground text-center">
{t("noChanges")}
</p>
</div> </div>
) : ( ) : (
<div className="space-y-2 pb-2"> <div className="space-y-2 pb-2">