fix: notification matrix

This commit is contained in:
gosangam
2026-08-30 11:15:54 +05:30
parent bf8db28a7c
commit 3ce08428c8
@@ -53,11 +53,11 @@ const EVENTS: {
{ {
key: "messages", key: "messages",
label: "Messages", label: "Messages",
description: "New direct messages and group chats.", description:
// Push only. In-app delivery for chat is the inbox itself — a message "New messages. Email is only ever sent when someone starts a conversation with you.",
// highlights its row rather than entering the notification tray — and // No in-app: chat's in-app delivery is the inbox itself, where a message
// there is no such thing as an emailed chat message. // highlights its row rather than entering the notification tray.
channels: ["push"], channels: ["email", "push"],
}, },
{ {
key: "community", key: "community",
@@ -139,7 +139,11 @@ export function NotificationMatrix() {
} }
return ( return (
<div className="grid grid-cols-[1fr_auto_auto_auto] items-center gap-x-4 gap-y-0 sm:gap-x-6"> // Fixed, EQUAL channel columns. With `auto` each one sized to its own
// widest content — "In-app" against the 44px toggle, "Push" against the
// same toggle — so the three columns came out different widths and
// neither the headers nor the switches lined up down the grid.
<div className="grid grid-cols-[1fr_repeat(3,3.25rem)] items-center gap-x-2 gap-y-0 sm:grid-cols-[1fr_repeat(3,4rem)] sm:gap-x-4">
{/* Header row */} {/* Header row */}
<span aria-hidden /> <span aria-hidden />
{CHANNELS.map((c) => ( {CHANNELS.map((c) => (