Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Update poll header

Luke Vella91b3f9d3e316
diff --git a/apps/web/src/components/poll/desktop-poll/poll-header.tsx b/apps/web/src/components/poll/desktop-poll/poll-header.tsx
index b47f908d6..dce6f4cac 100644
--- a/apps/web/src/components/poll/desktop-poll/poll-header.tsx
+++ b/apps/web/src/components/poll/desktop-poll/poll-header.tsx
@@ -43,13 +43,17 @@ const TimeRange: React.FunctionComponent<{
const TimelineRow = ({
children,
top,
-}: React.PropsWithChildren<{ top?: number }>) => {
+ rowSpan = 0,
+}: React.PropsWithChildren<{ top?: number; rowSpan?: number }>) => {
return (
<tr>
- <th
- style={{ minWidth: 235, width: 300, top }}
- className="sticky left-0 z-30 bg-background pr-4 pl-4"
- />
+ {rowSpan > 0 ? (
+ <th
+ rowSpan={rowSpan}
+ style={{ minWidth: 235, width: 235, top }}
+ className={cn("sticky left-0 z-30 border-b bg-background px-4 py-2")}
+ />
+ ) : null}
{children}
</tr>
);
@@ -76,7 +80,7 @@ const PollHeader = () => {
return (
<>
- <TimelineRow top={0}>
+ <TimelineRow top={0} rowSpan={3}>
{monthGroups.map((group) => (
<th
key={`${group.month} ${group.year}`}