mobile responsive

This commit is contained in:
gosangam
2026-10-16 15:45:29 +05:30
parent 1e551764e1
commit b194d4aa03
21 changed files with 249 additions and 138 deletions
+11 -8
View File
@@ -6,6 +6,7 @@ import { usePagedList } from "@/lib/use-paged-list";
import { ListShell, EmptyRow } from "@/components/list-shell";
import { Table, THead, TR, TH, TD } from "@/components/ui/table";
import { fmtDate } from "@/lib/utils";
import { Clamp } from "@/components/ui/clamp";
export default function CollectionsPage() {
const [q, setQ] = useState("");
@@ -40,18 +41,20 @@ export default function CollectionsPage() {
list.items.map((c) => (
<TR key={c.id}>
<TD className="max-w-md">
<div className="font-medium">{c.title}</div>
<Clamp lines={2} className="font-medium">
{c.title}
</Clamp>
{c.description ? (
<div className="mt-0.5 line-clamp-1 text-xs text-muted-foreground">
<Clamp className="mt-0.5 text-xs text-muted-foreground">
{c.description}
</div>
</Clamp>
) : null}
</TD>
<TD className="whitespace-nowrap">
<div className="font-medium">{c.owner_name}</div>
<div className="text-xs text-muted-foreground">
@{c.owner_handle}
</div>
<TD className="max-w-[14rem]">
<Clamp className="font-medium">{c.owner_name}</Clamp>
<Clamp className="text-xs text-muted-foreground">
{`@${c.owner_handle}`}
</Clamp>
</TD>
<TD>{c.item_count}</TD>
<TD>