fix(codebase): clean up initial loading state UI
This commit is contained in:
@@ -73,34 +73,34 @@ export default function CodeTab() {
|
|||||||
{/* ── Left rail ── */}
|
{/* ── Left rail ── */}
|
||||||
<section style={leftCol}>
|
<section style={leftCol}>
|
||||||
{showLoading && (
|
{showLoading && (
|
||||||
<Card>
|
<div
|
||||||
<div
|
style={{
|
||||||
style={{
|
display: "flex",
|
||||||
display: "flex",
|
alignItems: "center",
|
||||||
alignItems: "center",
|
justifyContent: "center",
|
||||||
gap: 8,
|
padding: "48px 0",
|
||||||
color: THEME.mid,
|
gap: 8,
|
||||||
fontSize: "0.875rem",
|
color: THEME.muted,
|
||||||
}}
|
fontSize: "0.85rem",
|
||||||
>
|
}}
|
||||||
<Loader2 size={15} className="animate-spin" /> Loading…
|
>
|
||||||
</div>
|
<Loader2 size={16} className="animate-spin" /> Loading codebase…
|
||||||
</Card>
|
</div>
|
||||||
)}
|
)}
|
||||||
{error && !showLoading && (
|
{error && !showLoading && (
|
||||||
<Card>
|
<div
|
||||||
<div
|
style={{
|
||||||
style={{
|
display: "flex",
|
||||||
display: "flex",
|
alignItems: "center",
|
||||||
alignItems: "center",
|
justifyContent: "center",
|
||||||
gap: 8,
|
padding: "48px 0",
|
||||||
color: THEME.danger,
|
gap: 8,
|
||||||
fontSize: "0.875rem",
|
color: THEME.danger,
|
||||||
}}
|
fontSize: "0.85rem",
|
||||||
>
|
}}
|
||||||
<AlertCircle size={15} /> {error}
|
>
|
||||||
</div>
|
<AlertCircle size={16} /> {error}
|
||||||
</Card>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{anatomy && (
|
{anatomy && (
|
||||||
|
|||||||
Reference in New Issue
Block a user