Skip to content
Open
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
21 changes: 14 additions & 7 deletions src/app/components/BlueprintTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ export const BlueprintTitle = ({
};

return (
<div className="rounded-3xl border border-grey-200 bg-[#FFFFFF] p-6 shadow-sm">
<div className="mb-1 flex w-full items-center gap-2 justify-between">
<div className="flex-1 flex items-center gap-2 min-w-0">
<h2 className="text-xl font-bold text-grey-900 break-words text-wrap truncate">{blueprint.props.title}</h2>
<div className="w-full min-w-0 rounded-3xl border border-grey-200 bg-[#FFFFFF] p-6 shadow-sm">
<div className="mb-1 flex w-full items-center justify-between gap-2">
<div className="flex min-w-0 flex-1 items-center gap-2">
<h2 className="truncate text-wrap break-words text-xl font-bold text-grey-900">
{blueprint.props.title}
</h2>
</div>
<div className="flex items-center gap-3 text-sm flex-shrink-0">
<div className="flex flex-shrink-0 items-center gap-3 text-sm">
<span className="flex flex-row items-center gap-1 rounded-lg px-2 py-1 font-medium text-grey-800">
<Image width={16} height={16} src="/assets/Users.svg" alt="views" />
{blueprint.props.totalProofs}
Expand All @@ -71,8 +73,13 @@ export const BlueprintTitle = ({
</div>

<div className="mb-5 space-y-3">
<p className="text-sm font-medium text-grey-700">{blueprint.props.slug}</p>
<p className="text-sm text-grey-800 break-words text-wrap">{blueprint.props.description}</p>
<p
className="min-w-0 max-w-full break-words text-sm font-medium text-grey-700 [overflow-wrap:anywhere]"
title={blueprint.props.slug}
>
{blueprint.props.slug}
</p>
<p className="text-wrap break-words text-sm text-grey-800">{blueprint.props.description}</p>

{blueprint.props.decomposedRegexes?.length > 0 && (
<div className="flex flex-wrap items-center gap-2">
Expand Down