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(today): match desktop typography in the recent and spaces sidebar (#109282)

Shy Alter88283ff92284
diff --git a/frontend/src/layout/today/TodayPaneSection.tsx b/frontend/src/layout/today/TodayPaneSection.tsx
index 08d013edd291..c1ea21d1e015 100644
--- a/frontend/src/layout/today/TodayPaneSection.tsx
+++ b/frontend/src/layout/today/TodayPaneSection.tsx
@@ -43,12 +43,7 @@ export function TodayPaneSection({
const Caret = open ? IconChevronDown : IconChevronRight
return (
<section aria-label={label} className="flex shrink-0 flex-col">
- <div
- className={cn(
- 'relative flex h-9 shrink-0 items-center gap-1 pt-1',
- divider && 'border-t border-border'
- )}
- >
+ <div className={cn('relative flex h-7 shrink-0 items-center gap-1', divider && 'border-t border-border')}>
{resizer && <TodayPaneSectionResizeHandle label={label} active={resizing} resizer={resizer} />}
{heading ?? (
<MenuLabel
@@ -56,11 +51,13 @@ export function TodayPaneSection({
aria-expanded={open}
data-attr={dataAttr}
onClick={onToggle}
- className="flex min-w-0 flex-1 cursor-pointer items-center gap-1 rounded-sm text-left"
+ className="flex min-w-0 flex-1 cursor-pointer items-center gap-1 rounded-sm py-1 text-left text-foreground/70 hover:text-foreground"
>
<span>{label}</span>
- <Caret className="size-3" />
- {!open && count > 0 && <span className="tabular-nums">{count}</span>}
+ <Caret className="size-3 shrink-0 opacity-60" />
+ {!open && count > 0 && (
+ <span className="ml-0.5 font-normal text-muted-foreground tabular-nums">{count}</span>
+ )}
</MenuLabel>
)}
{open && actions && <div className="flex shrink-0 items-center">{actions}</div>}
diff --git a/frontend/src/layout/today/TodaySpacesRow.tsx b/frontend/src/layout/today/TodaySpacesRow.tsx
index 07e84d48dc6c..00e6c6e46f70 100644
--- a/frontend/src/layout/today/TodaySpacesRow.tsx
+++ b/frontend/src/layout/today/TodaySpacesRow.tsx
@@ -29,7 +29,7 @@ export function TodaySpacesRow({ label, icon, to, active, dataAttr, action, badg
badge && 'pr-24'
)}
>
- <span className="flex size-4 shrink-0 items-center justify-center">{icon}</span>
+ <span className="flex size-3.5 shrink-0 items-center justify-center">{icon}</span>
<span className="min-w-0 flex-1 truncate">{label}</span>
</Button>
{(action || badge) && (
diff --git a/frontend/src/layout/today/TodaySpacesSidebar.tsx b/frontend/src/layout/today/TodaySpacesSidebar.tsx
index 00496a0b50d0..d92488b5eb2b 100644
--- a/frontend/src/layout/today/TodaySpacesSidebar.tsx
+++ b/frontend/src/layout/today/TodaySpacesSidebar.tsx
@@ -187,6 +187,7 @@ export function TodaySpacesSidebar(): JSX.Element {
{group.label && (
<Text
size="xs"
+ weight="medium"
variant="muted"
className={cn('block px-2 pb-1', index === 0 ? 'pt-1' : 'pt-3')}
>
diff --git a/frontend/src/scenes/project-homepage/today/Today.scss b/frontend/src/scenes/project-homepage/today/Today.scss
index 1082a4da7147..b700e770607d 100644
--- a/frontend/src/scenes/project-homepage/today/Today.scss
+++ b/frontend/src/scenes/project-homepage/today/Today.scss
@@ -71,11 +71,13 @@
animation: Today__page-in 0.18s ease-out both;
}
-// Zero-specificity resets, so component classes below and shared buttons keep their own styles.
-:where(.Today) button {
- font: inherit;
- color: inherit;
- cursor: pointer;
+// In the base layer, so layered component styles (quill) win over it; an unlayered rule beats any layer.
+@layer base {
+ :where(.Today) button {
+ font: inherit;
+ color: inherit;
+ cursor: pointer;
+ }
}
:where(.Today) :focus-visible {