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(auth): make paper-desk auth scenes scrollable when taller than viewport (#66091)

Fernando Gomes9f9d5c7bd593
diff --git a/frontend/src/scenes/authentication/shared/paperDesk/PaperDesk.scss b/frontend/src/scenes/authentication/shared/paperDesk/PaperDesk.scss
index 7ac9b4c96613..fbd6084d2341 100644
--- a/frontend/src/scenes/authentication/shared/paperDesk/PaperDesk.scss
+++ b/frontend/src/scenes/authentication/shared/paperDesk/PaperDesk.scss
@@ -2,7 +2,7 @@
// Only rules that cannot be expressed in Tailwind utilities live here:
// pseudo-elements, interactive pseudo-class combinators, child selectors, keyframes.
-// Dotted paper grid + faint accent glow — require pseudo-elements, not achievable via Tailwind
+// Dotted paper grid + faint accent glow — multi-layer background (per-layer size/repeat), not achievable via Tailwind
.PaperDesk {
--primary-3000-button-bg: var(--warning);
--primary-3000-frame-bg: var(--primary-3000-button-border-light);
@@ -12,22 +12,17 @@
// Links use the bright brand amber, not the darker text-contrast warning token.
--color-text-warning: var(--warning);
- &::before {
- position: absolute;
- inset: 0;
- pointer-events: none;
- content: '';
- background-image: radial-gradient(rgb(17 17 17 / 5.5%) 1.4px, transparent 1.4px);
- background-size: 16px 16px;
- }
-
- &::after {
- position: absolute;
- inset: 0;
- pointer-events: none;
- content: '';
- background: radial-gradient(72% 72% at 50% 38%, rgb(247 165 1 / 5%), transparent 70%);
- }
+ // Accent glow over the dotted grid. Layered onto the element itself rather than absolutely
+ // positioned pseudo-elements so the texture stays fixed to the viewport while the scene scrolls
+ // (a card taller than the viewport scrolls inside .PaperDesk; pseudo-elements would scroll away).
+ // background-color stays on the Tailwind `bg-[#eef0e7]` utility — only the image layers live here.
+ background-image:
+ radial-gradient(72% 72% at 50% 38%, rgb(247 165 1 / 5%), transparent 70%),
+ radial-gradient(rgb(17 17 17 / 5.5%) 1.4px, transparent 1.4px);
+ background-repeat: no-repeat, repeat;
+ background-size:
+ auto,
+ 16px 16px;
}
// Child SVG sizing — child selector, no Tailwind equivalent
diff --git a/frontend/src/scenes/authentication/shared/paperDesk/PaperDeskScene.tsx b/frontend/src/scenes/authentication/shared/paperDesk/PaperDeskScene.tsx
index 78b859280847..8df40991a077 100644
--- a/frontend/src/scenes/authentication/shared/paperDesk/PaperDeskScene.tsx
+++ b/frontend/src/scenes/authentication/shared/paperDesk/PaperDeskScene.tsx
@@ -10,9 +10,9 @@ import { Typewriter } from './Typewriter'
/** Full-viewport paper-desk stage: dotted parchment + accent glow + mono corner notes. */
export function PaperDeskScene({ notes, children }: { notes: string[]; children: ReactNode }): JSX.Element {
return (
- <div className="PaperDesk relative min-h-screen overflow-hidden font-sans text-primary bg-[#eef0e7]">
+ <div className="PaperDesk relative h-screen overflow-x-hidden overflow-y-auto font-sans text-primary bg-[#eef0e7]">
<Typewriter lines={notes} />
- <div className="relative z-[3] flex flex-col items-center justify-center min-h-screen py-18 px-10">
+ <div className="relative z-[3] flex flex-col items-center justify-center min-h-full py-18 px-10">
<div className="PaperDesk__column flex flex-col items-center w-[27rem] max-w-full">{children}</div>
</div>
<DevLoginPanel />