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
+10 -12
View File
@@ -22,6 +22,7 @@ import {
type VaniCandidate,
type VaniPick,
} from "@/lib/api";
import { Clamp } from "@/components/ui/clamp";
/** Today in UTC — picks are keyed on a UTC calendar day. */
function todayUTC(): string {
@@ -200,12 +201,10 @@ export default function VaniPage() {
className="flex items-center gap-3 px-3 py-2.5"
>
<div className="min-w-0 flex-1">
<p className="truncate text-sm text-foreground">
{c.title}
</p>
<p className="truncate text-xs text-muted-foreground">
{vaniKindFor(c.collection)} · {c.snippet}
</p>
<Clamp className="text-sm text-foreground">{c.title}</Clamp>
<Clamp className="text-xs text-muted-foreground">
{`${vaniKindFor(c.collection)} · ${c.snippet}`}
</Clamp>
</div>
<button
type="button"
@@ -240,13 +239,12 @@ export default function VaniPage() {
{p.day}
</span>
<div className="min-w-0 flex-1">
<p className="truncate text-sm text-foreground">
<Clamp className="text-sm text-foreground">
{p.payload.title}
</p>
<p className="truncate text-xs text-muted-foreground">
{p.payload.label}
{p.payload.book_title ? ` · ${p.payload.book_title}` : ""}
</p>
</Clamp>
<Clamp className="text-xs text-muted-foreground">
{`${p.payload.label}${p.payload.book_title ? ` · ${p.payload.book_title}` : ""}`}
</Clamp>
</div>
<Can perm="vani:write">
<button