Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
💄 Use card background for desktop poll table (#2895)
Luke Vella1b7d8087d2fb
diff --git a/apps/web/src/features/poll/components/desktop-poll.tsx b/apps/web/src/features/poll/components/desktop-poll.tsxindex 1037141e9..40ce53fbd 100644--- a/apps/web/src/features/poll/components/desktop-poll.tsx+++ b/apps/web/src/features/poll/components/desktop-poll.tsx@@ -271,7 +271,7 @@ const DesktopPoll: React.FunctionComponent = () => {className={cn("flex max-h-full flex-col overflow-hidden rounded-2xl",{- "w-full max-w-7xl border border-popover-border bg-background shadow-2xl":+ "w-full max-w-7xl border border-popover-border bg-card shadow-2xl":expanded,},)}diff --git a/apps/web/src/features/poll/components/desktop-poll/participant-row-form.tsx b/apps/web/src/features/poll/components/desktop-poll/participant-row-form.tsxindex e2f87659b..c0b082987 100644--- a/apps/web/src/features/poll/components/desktop-poll/participant-row-form.tsx+++ b/apps/web/src/features/poll/components/desktop-poll/participant-row-form.tsx@@ -56,7 +56,7 @@ const ParticipantRowForm = ({<tr className={cn("group", className)}><tdstyle={{ minWidth: 235, maxWidth: 235 }}- className="sticky left-0 z-10 h-12 border-b border-b-border-muted bg-background px-3 group-[.last-row]:border-b-0"+ className="sticky left-0 z-10 h-12 border-b border-b-border-muted bg-card px-3 group-[.last-row]:border-b-0"><div className="flex items-center justify-between gap-x-2.5"><Participant>@@ -110,18 +110,13 @@ const ParticipantRowForm = ({return (<tdkey={optionId}- className="relative h-12 border-b border-b-border-muted border-l bg-background group-[.last-row]:border-b-0"+ className="relative h-12 border-b border-b-border-muted border-l bg-card group-[.last-row]:border-b-0"><Controllercontrol={form.control}name={`votes.${i}`}render={({ field }) => (- <div- className={cn(- "absolute inset-0 flex items-center justify-center transition-colors",- "hover:bg-gray-50 active:bg-gray-100 active:ring-1 active:ring-gray-200 active:ring-inset dark:active:bg-gray-700/50 dark:active:ring-gray-700 dark:active:ring-inset dark:hover:bg-gray-800",- )}- >+ <div className={cn("flex justify-center gap-2")}><VoteSelectorclassName="after:absolute after:inset-0"optionLabel={diff --git a/apps/web/src/features/poll/components/desktop-poll/participant-row.tsx b/apps/web/src/features/poll/components/desktop-poll/participant-row.tsxindex 39b83eaa9..94194275f 100644--- a/apps/web/src/features/poll/components/desktop-poll/participant-row.tsx+++ b/apps/web/src/features/poll/components/desktop-poll/participant-row.tsx@@ -66,7 +66,7 @@ export const ParticipantRowView: React.FunctionComponent<{><tdstyle={{ minWidth: 235, maxWidth: 235 }}- className="sticky left-0 z-10 h-12 border-border-muted border-b bg-background px-3 group-[.last-row]:border-b-0"+ className="sticky left-0 z-10 h-12 border-border-muted border-b bg-card px-3 group-[.last-row]:border-b-0"><div className="flex max-w-full items-center justify-between gap-x-1"><Participant>@@ -94,7 +94,7 @@ export const ParticipantRowView: React.FunctionComponent<{// biome-ignore lint/suspicious/noArrayIndexKey: Fix this laterkey={i}className={cn(- "h-12 border-b border-b-border-muted border-l bg-background group-[.last-row]:border-b-0",+ "h-12 border-b border-b-border-muted border-l bg-card group-[.last-row]:border-b-0",)}><div className={cn("flex items-center justify-center")}>diff --git a/apps/web/src/features/poll/components/desktop-poll/poll-header.tsx b/apps/web/src/features/poll/components/desktop-poll/poll-header.tsxindex a33fc9ec8..9e634957c 100644--- a/apps/web/src/features/poll/components/desktop-poll/poll-header.tsx+++ b/apps/web/src/features/poll/components/desktop-poll/poll-header.tsx@@ -44,7 +44,7 @@ const TimelineRow = ({<throwSpan={rowSpan}style={{ minWidth: 235, width: 235, top }}- className={cn("sticky left-0 z-30 border-b bg-background px-4 py-2")}+ className={cn("sticky left-0 z-30 border-b bg-card px-4 py-2")}/>) : null}{children}@@ -108,7 +108,7 @@ const PollHeader = () => {colSpan={group.count}style={{ height: monthRowHeight }}className={cn(- "sticky top-0 z-10 border-b border-l bg-background text-left",+ "sticky top-0 z-10 border-b border-l bg-card text-left",)}><div className="sticky right-0 left-[236px] inline-flex h-5 gap-1 px-2 py-0.5 font-medium text-xs uppercase">@@ -125,7 +125,7 @@ const PollHeader = () => {scope="colgroup"colSpan={group.count}style={{ height: dayRowHeight, top: monthRowHeight }}- className="sticky z-10 border-l bg-background"+ className="sticky z-10 border-l bg-card"><divstyle={{ width: `calc(100% / ${group.count})` }}@@ -148,7 +148,7 @@ const PollHeader = () => {key={option.optionId}scope="col"style={{ minWidth: 80, top: scoreRowTop }}- className="sticky z-20 border-b border-l bg-background px-2 pb-2.5 align-top"+ className="sticky z-20 border-b border-l bg-card px-2 pb-2.5 align-top"><div className="flex flex-col items-center gap-3">{option.type === "timeSlot" ? (diff --git a/apps/web/src/features/poll/components/vote-selector.tsx b/apps/web/src/features/poll/components/vote-selector.tsxindex c48bd7286..337a644de 100644--- a/apps/web/src/features/poll/components/vote-selector.tsx+++ b/apps/web/src/features/poll/components/vote-selector.tsx@@ -1,5 +1,5 @@import type { VoteType } from "@rallly/database";-import { cn } from "@rallly/ui";+import { buttonVariants, cn } from "@rallly/ui";import * as React from "react";import { useTranslation } from "@/i18n/client";@@ -61,7 +61,13 @@ export const VoteSelector = React.forwardRef<onBlur={onBlur}onKeyDown={onKeyDown}className={cn(- "flex size-7 cursor-pointer items-center justify-center rounded-lg border border-input bg-background ring-ring focus-visible:ring-2",+ buttonVariants({+ size: "icon-sm",+ }),+ // The default variant's backdrop-blur makes this button a containing+ // block, which would trap the after:inset-0 overlay callers use to+ // extend the tap target to the whole cell/row.+ "backdrop-blur-none",className,)}onClick={() => {