Skip to content

Commit 580654f

Browse files
committed
fix: graph styling
1 parent 7af0b3c commit 580654f

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

apps/postgres-new/components/schema/table-graph.tsx

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,25 +116,35 @@ export default function TablesGraph({
116116

117117
<div className="absolute w-full h-full flex justify-center items-center text-center p-4 font-medium">
118118
{isLoading && (
119-
<div className="flex gap-4 items-center text-lighter">
119+
<div className="flex gap-4 items-center text-primary/25">
120120
<Loader className="animate-spin" size={28} />
121121
<p className="text-xl">Loading schema...</p>
122122
</div>
123123
)}
124124

125125
{isError && (
126-
<div className="flex gap-2 text-lighter">
126+
<div className="flex gap-2 text-primary/25">
127127
<p>Error loading schema from the database:</p>
128128
<p>{`${error?.message ?? 'Unknown error'}`}</p>
129129
</div>
130130
)}
131131

132132
{isEmpty && (
133-
<h2 className="text-4xl text-lighter font-light w-[500px]">Ask AI to create a table</h2>
133+
<h2 className="text-2xl text-primary/25 font-light w-[500px]">
134+
Ask AI to create a table
135+
</h2>
134136
)}
135137
</div>
136138

137-
<Controls showZoom={false} showInteractive={false} position="top-right" />
139+
<Controls
140+
className="[&.react-flow\_\_controls]:shadow-none [&_button]:bg-border [&_button:hover]:bg-background [&_button]:border-none [&_button]:text-blue [&_button]:rounded-md [&_svg]:fill-current"
141+
showZoom={false}
142+
showInteractive={false}
143+
position="top-right"
144+
fitViewOptions={{
145+
duration: 200,
146+
}}
147+
/>
138148

139149
<div className="absolute bottom-0 left-0 right-0 z-10 flex flex-col"></div>
140150
</ReactFlow>

0 commit comments

Comments
 (0)