Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(surfaces): unclip and round the support unread badge in the rail nav (#125335)

Shy Altera77e0239875b
diff --git a/frontend/src/layout/today/TodayPaneOption.tsx b/frontend/src/layout/today/TodayPaneOption.tsx
index 3e721e3d072e..5d5860de225b 100644
--- a/frontend/src/layout/today/TodayPaneOption.tsx
+++ b/frontend/src/layout/today/TodayPaneOption.tsx
@@ -40,7 +40,7 @@ export function TodayPaneOption({
nativeButton={false}
render={<LinkPrimitive to={to} />}
className={cn(
- 'w-full min-w-0 font-semibold [&>span]:w-full',
+ 'w-full min-w-0 font-semibold [&>span]:w-full [&>span]:overflow-visible',
variant === 'default' && 'text-foreground',
'data-highlighted:border-transparent data-highlighted:ring-0',
active
diff --git a/frontend/src/layout/today/TodayPaneRow.tsx b/frontend/src/layout/today/TodayPaneRow.tsx
index ca6383d8e1ba..72e9cacaac52 100644
--- a/frontend/src/layout/today/TodayPaneRow.tsx
+++ b/frontend/src/layout/today/TodayPaneRow.tsx
@@ -42,7 +42,7 @@ export function TodayPaneRow({
>
{icon && (
<span
- className="flex size-4 shrink-0 items-center justify-center [&_svg]:size-4"
+ className="TodayIconBadge flex size-4 shrink-0 items-center justify-center [&_svg]:size-4"
data-keep-color
aria-hidden
>
diff --git a/frontend/src/layout/today/TodayProductHoverCard.tsx b/frontend/src/layout/today/TodayProductHoverCard.tsx
index 2087b0d1b797..0029b814bdd0 100644
--- a/frontend/src/layout/today/TodayProductHoverCard.tsx
+++ b/frontend/src/layout/today/TodayProductHoverCard.tsx
@@ -18,9 +18,9 @@ export function TodayProductHoverCard({
<div className="flex flex-col" data-attr="today-product-hover-card">
<Item size="xs" className="items-start">
<ItemContent className="min-w-0 gap-2">
- <ItemTitle className="flex items-center gap-2 wrap-anywhere">
+ <ItemTitle className="flex items-center gap-2 overflow-visible wrap-anywhere">
<span
- className="flex size-4 shrink-0 items-center justify-center group/colorful-product-icons colorful-product-icons-true [&_svg]:size-4"
+ className="TodayIconBadge flex size-4 shrink-0 items-center justify-center group/colorful-product-icons colorful-product-icons-true [&_svg]:size-4"
aria-hidden
>
{preview.kind === 'product' ? <NavProductIcon item={preview.product} /> : preview.icon}
diff --git a/frontend/src/layout/today/TodayShell.scss b/frontend/src/layout/today/TodayShell.scss
index daa7d59cf404..fcc769801fff 100644
--- a/frontend/src/layout/today/TodayShell.scss
+++ b/frontend/src/layout/today/TodayShell.scss
@@ -323,6 +323,13 @@ body.has-today-phone-layout .Toastify__toast-container--bottom-right {
padding: 0 8px;
}
+.TodayIconBadge .LemonBadge:not(.LemonBadge--hidden) {
+ width: var(--lemon-badge-size);
+ padding: 0;
+ font-size: 0.5625rem;
+ letter-spacing: -0.03em;
+}
+
.TodayPane__filters {
display: flex;
flex-direction: column;