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.

feat(workflows): show the broadcast audience cohort link as an icon (#121588)

ruby childsbadf0ca5a292
diff --git a/products/workflows/frontend/Broadcasts/audience/BroadcastAudienceCohorts.tsx b/products/workflows/frontend/Broadcasts/audience/BroadcastAudienceCohorts.tsx
index 244a7354c30f..48a72ba60f3c 100644
--- a/products/workflows/frontend/Broadcasts/audience/BroadcastAudienceCohorts.tsx
+++ b/products/workflows/frontend/Broadcasts/audience/BroadcastAudienceCohorts.tsx
@@ -53,7 +53,7 @@ export function BroadcastAudienceCohorts(): JSX.Element | null {
return (
<div
key={id}
- className="flex flex-wrap items-center justify-between gap-2 rounded border bg-surface-primary px-3 py-2"
+ className="flex items-start justify-between gap-2 rounded border bg-surface-primary px-3 py-2"
>
<div className="flex min-w-0 items-center gap-2">
<IconCohort className="shrink-0 text-lg text-secondary" />
@@ -78,15 +78,15 @@ export function BroadcastAudienceCohorts(): JSX.Element | null {
</div>
</div>
<LemonButton
- size="small"
- type="secondary"
+ size="xsmall"
+ className="shrink-0"
to={urls.cohort(id)}
targetBlank
- sideIcon={<IconOpenInNew />}
+ icon={<IconOpenInNew />}
+ tooltip="Open cohort"
+ aria-label="Open cohort"
data-attr="broadcast-audience-open-cohort"
- >
- Open cohort
- </LemonButton>
+ />
</div>
)
})}