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(visual-review): stack snapshot grid and facets on small screens (#64816)

Matt Puaf5e3bb7e1e0a
diff --git a/products/visual_review/frontend/components/SnapshotFacetSidebar.tsx b/products/visual_review/frontend/components/SnapshotFacetSidebar.tsx
index 0a06d31c38d5..64e61a7dcb2c 100644
--- a/products/visual_review/frontend/components/SnapshotFacetSidebar.tsx
+++ b/products/visual_review/frontend/components/SnapshotFacetSidebar.tsx
@@ -35,7 +35,7 @@ export function SnapshotFacetSidebar({
onToggle: (group: keyof FacetGroups, value: string) => void
}): JSX.Element {
return (
- <aside className="w-52 shrink-0 flex flex-col gap-4 text-sm">
+ <aside className="w-full sm:w-52 shrink-0 flex flex-col gap-4 text-sm">
{GROUP_LABELS.map(({ key, label }) => {
const buckets = groups[key]
if (!buckets.length) {
diff --git a/products/visual_review/frontend/scenes/VisualReviewSnapshotOverviewScene.tsx b/products/visual_review/frontend/scenes/VisualReviewSnapshotOverviewScene.tsx
index bd53aa44a52d..6a379bc9889a 100644
--- a/products/visual_review/frontend/scenes/VisualReviewSnapshotOverviewScene.tsx
+++ b/products/visual_review/frontend/scenes/VisualReviewSnapshotOverviewScene.tsx
@@ -151,7 +151,7 @@ export function VisualReviewSnapshotOverviewScene(): JSX.Element {
</span>
</div>
- <div className="flex gap-6 items-start">
+ <div className="flex flex-col sm:flex-row gap-6 items-start">
<SnapshotFacetSidebar
groups={facetGroups}
selection={facetSelection}