Skip to content

Commit 1e54786

Browse files
committed
fix bugs
1 parent f76e82c commit 1e54786

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

apps/web/src/app/(home)/_components/CommandDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function CommandDisplay({ command }: CommandDisplayProps) {
1818

1919
return (
2020
<div className="relative group">
21-
<div className="bg-gray-950/20 backdrop-blur-xl border border-gray-800 rounded-lg p-4 font-mono text-sm text-gray-300 overflow-x-auto">
21+
<div className="bg-gray-950/20 w-fit backdrop-blur-xl border border-gray-800 rounded-lg p-4 font-mono text-sm text-gray-300 overflow-x-auto">
2222
<button
2323
type="button"
2424
onClick={copyToClipboard}

apps/web/src/app/(home)/_components/CustomizableStack.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ const CustomizableStack = () => {
146146
}
147147

148148
if (activeNodes.auth !== "better-auth") {
149-
flags.splice(flags.indexOf("-y"), 1);
149+
if (flags.includes("-y")) {
150+
flags.splice(flags.indexOf("-y"), 1);
151+
}
150152
flags.push("--no-auth");
151153
}
152154

@@ -159,14 +161,14 @@ const CustomizableStack = () => {
159161
<div className="absolute -top-16 left-1/2 -translate-x-1/2 z-50 w-96">
160162
<CommandDisplay command={generateCommand()} />
161163
</div>
162-
<div className="bg-gray-950/10 p-4 absolute top-4 right-4 z-50 w-96 rounded-xl border border-gray-800 backdrop-blur-3xl">
163-
<div className="text-sm text-gray-300">
164+
<div className="bg-gray-950/10 p-4 absolute top-4 right-4 z-50 w-80 rounded-xl border border-gray-800 backdrop-blur-3xl">
165+
<div className="text-sm text-gray-300 text-center">
164166
Select technologies from the left panel to customize your stack. The
165167
graph will automatically update connections.
166168
</div>
167169
</div>
168170
<div className="absolute inset-0 backdrop-blur-3xl bg-gradient-to-r from-blue-500/10 via-purple-500/10 to-pink-500/10 rounded-xl" />
169-
<div className="h-[600px] relative backdrop-blur-sm bg-gray-950/50 rounded-xl overflow-hidden border border-gray-800">
171+
<div className="h-[600px] pl-28 relative backdrop-blur-sm bg-gray-950/50 rounded-xl overflow-hidden border border-gray-800">
170172
<ReactFlow
171173
nodes={nodes}
172174
edges={edges}

apps/web/src/app/(home)/_components/TechNodeComponent.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ export function TechNodeComponent({ data }: { data: TechNodeData }) {
3333

3434
return (
3535
<div className="relative group">
36-
<Handle
37-
type="target"
38-
position={Position.Top}
39-
className="!w-1.5 !h-1.5 !bg-indigo-400/70"
40-
/>
36+
{data.label !== "Bun" && (
37+
<Handle
38+
type="target"
39+
position={Position.Top}
40+
className="!w-1.5 !h-1.5 !bg-indigo-400/70"
41+
/>
42+
)}
4143

4244
<div className={`${baseStyles} ${activeStyles} backdrop-blur-3xl`}>
4345
<div className="text-white font-medium text-sm tracking-wide mb-1.5">

0 commit comments

Comments
 (0)