Skip to content

Commit 2affdeb

Browse files
committed
fix(web): reorder save button
1 parent b5aba5e commit 2affdeb

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

apps/web/src/app/(home)/new/_components/stack-builder.tsx

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,11 +1339,10 @@ const StackBuilder = () => {
13391339
duration: 4000,
13401340
});
13411341
} else if (compatibilityAnalysis.changes.length > 1) {
1342-
const message = `${
1343-
compatibilityAnalysis.changes.length
1344-
} compatibility adjustments made:\n${compatibilityAnalysis.changes
1345-
.map((c) => `• ${c.message}`)
1346-
.join("\n")}`;
1342+
const message = `${compatibilityAnalysis.changes.length
1343+
} compatibility adjustments made:\n${compatibilityAnalysis.changes
1344+
.map((c) => `• ${c.message}`)
1345+
.join("\n")}`;
13471346
toast.info(message, {
13481347
duration: 5000,
13491348
});
@@ -1951,6 +1950,15 @@ const StackBuilder = () => {
19511950
</div>
19521951

19531952
<div className="grid grid-cols-2 gap-2">
1953+
<button
1954+
type="button"
1955+
onClick={saveCurrentStack}
1956+
className="flex items-center justify-center gap-2 rounded-md border border-border bg-fd-background px-3 py-2 font-medium text-muted-foreground text-xs transition-all hover:border-muted-foreground/30 hover:bg-muted hover:text-foreground"
1957+
title="Save current preferences"
1958+
>
1959+
<Star className="h-3.5 w-3.5" />
1960+
Save
1961+
</button>
19541962
{lastSavedStack ? (
19551963
<button
19561964
type="button"
@@ -1964,15 +1972,6 @@ const StackBuilder = () => {
19641972
) : (
19651973
<div className="h-9" />
19661974
)}
1967-
<button
1968-
type="button"
1969-
onClick={saveCurrentStack}
1970-
className="flex items-center justify-center gap-2 rounded-md border border-border bg-fd-background px-3 py-2 font-medium text-muted-foreground text-xs transition-all hover:border-muted-foreground/30 hover:bg-muted hover:text-foreground"
1971-
title="Save current preferences"
1972-
>
1973-
<Star className="h-3.5 w-3.5" />
1974-
Save
1975-
</button>
19761975
</div>
19771976

19781977
<ShareDialog stackUrl={getStackUrl()} stackState={stack}>
@@ -2095,10 +2094,10 @@ const StackBuilder = () => {
20952094

20962095
const disabledReason = isDisabled
20972096
? getDisabledReason(
2098-
stack,
2099-
categoryKey as keyof typeof TECH_OPTIONS,
2100-
tech.id,
2101-
)
2097+
stack,
2098+
categoryKey as keyof typeof TECH_OPTIONS,
2099+
tech.id,
2100+
)
21022101
: null;
21032102

21042103
return (

0 commit comments

Comments
 (0)