Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function App() {
<header className="bg-white dark:bg-slate-800 border-b border-slate-100 dark:border-slate-700">
<div className="max-w-7xl mx-auto px-4 py-4 flex items-center justify-between">
<Link to="/" className="flex items-center gap-2.5 hover:opacity-80 transition-opacity">
<div className="bg-gradient-to-br from-indigo-600 to-purple-600 rounded-lg w-7 h-7" />
<div className="bg-ink rounded-lg w-7 h-7" />
<span className="text-xl font-bold tracking-tight text-slate-900 dark:text-slate-100">
STR Profitability Calculator
</span>
Expand Down
10 changes: 6 additions & 4 deletions frontend/src/components/PropertyDetail/SnapshotButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ export function SnapshotButton({ propertyId, scenarioId, dirty = false, onPersis
return (
<>
<button
type="button"
onClick={() => setShowDialog(true)}
className="px-3 py-1.5 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 text-sm font-medium flex items-center gap-1.5"
className="caps px-4 py-2 border border-rule-strong rounded hover:bg-paper transition-colors"
>
<span>📸</span> Save Snapshot
Save Snapshot
</button>

{showDialog && (
Expand Down Expand Up @@ -92,11 +93,12 @@ export function SnapshotButton({ propertyId, scenarioId, dirty = false, onPersis
Cancel
</button>
<button
type="button"
onClick={handleSave}
disabled={saving}
className="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 disabled:opacity-50 text-sm font-medium"
className="caps px-5 py-2 bg-ink text-canvas rounded hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed transition-opacity"
>
{saving ? "Saving..." : dirty ? "Save changes & Snapshot" : "Save"}
{saving ? "Saving" : dirty ? "Save changes & Snapshot" : "Save"}
</button>
</div>
</div>
Expand Down
Loading