@devries-cameron20 / t3code Mirror · read-only / commits / 6e324b9bbf
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 24, 14:00 UTC

fix(web): reduce title bar scroll fade height (#8799)

Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com>

maria committed Aug 30, 2026 at 17:43 UTC 6e324b9bbfc72e694c3c16abeb59716c37fc02d5
5 files changed +13 -15
apps/web/src/components/chat/MessagesTimeline.test.tsx
+1 -1
@@ -343,7 +343,7 @@ describe("MessagesTimeline", () => {
343
344 expect(compactMarkup).toContain('class="h-3 sm:h-4"');
345 expect(compactMarkup).not.toContain("topbar-scroll-fade");
346 - expect(fadedMarkup).toContain('class="h-10 sm:h-12"');
346 + expect(fadedMarkup).toContain('class="h-[var(--workspace-titlebar-scroll-fade-height)]"');
347 expect(fadedMarkup).toContain("topbar-scroll-fade");
348 });
349
apps/web/src/components/chat/MessagesTimeline.tsx
+4 -2
@@ -175,7 +175,9 @@ interface TimelineRowActivityState {
175 const TimelineRowCtx = createContext<TimelineRowSharedState>(null!);
176 const TimelineRowActivityCtx = createContext<TimelineRowActivityState>(null!);
177 const TIMELINE_LIST_HEADER = <div className="h-3 sm:h-4" />;
178 -const TIMELINE_LIST_FADE_HEADER = <div className="h-10 sm:h-12" />;
178 +const TIMELINE_LIST_FADE_HEADER = (
179 + <div className="h-[var(--workspace-titlebar-scroll-fade-height)]" />
180 +);
181
182 // Header row shown when older turns exist beyond the loaded window. Plain
183 // button, no spinner animation; the label change is the loading indicator.
@@ -189,7 +191,7 @@ function TimelineLoadEarlierHeader({
191 fade: boolean;
192 }) {
193 return (
192 - <div className={fade ? "pt-10 sm:pt-12" : "pt-3 sm:pt-4"}>
194 + <div className={fade ? "pt-[var(--workspace-titlebar-scroll-fade-height)]" : "pt-3 sm:pt-4"}>
195 <div className="mx-auto w-full max-w-3xl pb-2">
196 <button
197 type="button"
apps/web/src/components/settings/settingsLayout.tsx
+1 -1
@@ -250,7 +250,7 @@ export function SettingsPageContainer({
250 return (
251 <SettingsSearchTargetProvider targetId={targetId} onTargetHandled={clearTargetHash}>
252 <div
253 - className="topbar-scroll-fade scrollbar-gutter-both flex-1 overflow-y-auto [--topbar-scroll-fade-height:1.5rem] sm:[--topbar-scroll-fade-height:1.5rem]"
253 + className="topbar-scroll-fade scrollbar-gutter-both flex-1 overflow-y-auto"
254 data-settings-page-scroll
255 >
256 <WorkspacePageContainer width={width} className={cn("gap-12", className)}>
apps/web/src/index.css
+5 -9
@@ -111,6 +111,7 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
111 --workspace-native-controls-inset: 0px;
112 --workspace-titlebar-control-size: 1.75rem;
113 --workspace-titlebar-control-gap: 0.75rem;
114 + --workspace-titlebar-scroll-fade-height: 1.5rem;
115
116 @variant dark {
117 --appearance-contrast-target: white;
@@ -354,7 +355,6 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
355 }
356
357 @utility topbar-scroll-fade {
357 - --topbar-scroll-fade-height: 2.5rem;
358 -webkit-mask-image:
359 linear-gradient(
360 to bottom,
@@ -370,8 +370,8 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
370 -webkit-mask-position: top, bottom, right;
371 -webkit-mask-repeat: no-repeat;
372 -webkit-mask-size:
373 - 100% var(--topbar-scroll-fade-height),
374 - 100% calc(100% - var(--topbar-scroll-fade-height)),
373 + 100% var(--workspace-titlebar-scroll-fade-height),
374 + 100% calc(100% - var(--workspace-titlebar-scroll-fade-height)),
375 var(--app-scrollbar-width) 100%;
376 mask-image:
377 linear-gradient(
@@ -388,13 +388,9 @@ html[data-mobile-composer-route-transition="true"]::view-transition-old(t3-mobil
388 mask-position: top, bottom, right;
389 mask-repeat: no-repeat;
390 mask-size:
391 - 100% var(--topbar-scroll-fade-height),
392 - 100% calc(100% - var(--topbar-scroll-fade-height)),
391 + 100% var(--workspace-titlebar-scroll-fade-height),
392 + 100% calc(100% - var(--workspace-titlebar-scroll-fade-height)),
393 var(--app-scrollbar-width) 100%;
394 -
395 - @variant sm {
396 - --topbar-scroll-fade-height: 3rem;
397 - }
394 }
395
396 /* Virtualizers own their native scroll element, so they cannot use ScrollArea's
apps/web/src/routes/_chat.pull-requests.tsx
+2 -2
@@ -1919,9 +1919,9 @@ function PullRequestsColumn({
1919
1920 <div
1921 ref={scrollRef}
1922 - className="topbar-scroll-fade scrollbar-gutter-both min-h-0 flex-1 overflow-y-auto [--topbar-scroll-fade-height:1.5rem] sm:[--topbar-scroll-fade-height:1.5rem]"
1922 + className="topbar-scroll-fade scrollbar-gutter-both min-h-0 flex-1 overflow-y-auto"
1923 >
1924 - {/* The top padding is the fade band's own height (1.5rem here), the same pairing the
1924 + {/* The top padding is the shared fade band's height, the same pairing the
1925 settings page makes: at rest the controls sit fully below the mask, and only
1926 content actually passing under the chrome fades. */}
1927 <WorkspacePageContainer className="gap-4">