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
4 changes: 4 additions & 0 deletions frontend/src/app/admin/legislation/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ export default function LegislationDetailsPage() {

<AdminCard>
<div className="grid gap-4 text-sm text-slate-700 sm:grid-cols-2">
<p className="sm:col-span-2">
<span className="font-semibold text-slate-900">Title:</span>{" "}
{legislation.bill_number}: {legislation.title}
</p>
<p>
<span className="font-semibold text-slate-900">Status:</span>{" "}
{legislation.status}
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/app/admin/legislation/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,15 @@ export default function AdminLegislationPage() {
// Define Table Columns
const columns: ColumnDef<Legislation>[] = [
{ accessorKey: "bill_number", header: "Bill Number" },
{ accessorKey: "title", header: "Title" },
{
accessorKey: "title",
header: "Title",
cell: ({ getValue }) => (
<div className="max-w-xs truncate" title={getValue() as string}>
{getValue() as string}
</div>
),
},
{ accessorKey: "status", header: "Status" },
{ accessorKey: "type", header: "Type" },
{ accessorKey: "session_number", header: "Session" },
Expand Down
6 changes: 4 additions & 2 deletions frontend/src/components/admin/AdminPageShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ export function AdminPageHeader({
}) {
return (
<div className="flex flex-col gap-4 border-b border-slate-200 pb-4 sm:flex-row sm:items-start sm:justify-between">
<div>
<h1 className="text-2xl font-semibold text-slate-900">{title}</h1>
<div className="min-w-0">
<h1 className="truncate text-2xl font-semibold text-slate-900">
{title}
</h1>
{description ? (
<p className="mt-1 text-sm text-slate-600">{description}</p>
) : null}
Expand Down
Loading