From 1c68ed5251296bdcc00b5f9ff842ae5bf33ec827 Mon Sep 17 00:00:00 2001 From: Jarrod Flesch <30633324+JarrodMFlesch@users.noreply.github.com> Date: Tue, 2 Sep 2025 09:51:07 -0400 Subject: [PATCH] fix(ui): sidebar missing sticky top offset (#13652) Regression from https://github.com/payloadcms/payload/pull/13340. Incorrect fallback value for the `--sidebar-wrap-top` css variable was used. ### Before CleanShot 2025-09-01 at 10 03
39@2x ### After CleanShot 2025-09-01 at 10 02
59@2x --- packages/ui/src/elements/DocumentFields/index.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/elements/DocumentFields/index.scss b/packages/ui/src/elements/DocumentFields/index.scss index 70191525e0..76754c4e31 100644 --- a/packages/ui/src/elements/DocumentFields/index.scss +++ b/packages/ui/src/elements/DocumentFields/index.scss @@ -93,7 +93,7 @@ } position: var(--sidebar-wrap-position, sticky); - top: var(--sidebar-wrap-top, 0); + top: var(--sidebar-wrap-top, var(--doc-controls-height)); width: var(--sidebar-wrap-width, 33.33%); height: var(--sidebar-wrap-height, calc(100vh - var(--doc-controls-height))); min-width: var(--sidebar-wrap-min-width, var(--doc-sidebar-width));