Skip to content

Commit

Permalink
enh(spu-ui): update CustomPlans component layout and styling
Browse files Browse the repository at this point in the history
- Update CardHeader Styling to be compatible to other cards on the same component
- Move capillary state badge to the CardContent closer to the sample info.
  • Loading branch information
brnovasco committed Jan 13, 2025
1 parent a4c6d19 commit c17d468
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/spu-ui/src/app/_components/custom/custom-plans.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,20 @@ import { CleaningDialog } from "./cleaning";
import { QueueStop } from "./queue-stop";
import { SingleAcquitision } from "./single-acquisition";

// className="m-0 rounded-md border bg-white p-2 text-sm font-semibold" />

export function CustomPlans() {
const { loadedSample } = useCapillaryState();

return (
<Card className="rounded-md">
<CardHeader>
<CardTitle className="flex flex-row items-center justify-between text-lg font-medium">
<Card className="space-y-4 rounded-md shadow-none">
<CardHeader className="relative flex items-center justify-center border-b border-slate-300 bg-slate-100 p-2">
<CardTitle className="flex items-center justify-center text-base font-semibold text-slate-700">
Custom Plans
<CapillaryStateBadge className="rounded-md bg-secondary p-2 text-sm font-semibold" />
</CardTitle>
</CardHeader>
<CardContent>
<CapillaryStateBadge className="mb-2 text-sm font-semibold" />
{loadedSample && (
<p className="space-x-2 text-sm text-muted-foreground">
<span>Loaded Sample:</span>
Expand Down

0 comments on commit c17d468

Please sign in to comment.