From 109526e53dc30fe522e5db138665b7f1ee7edd3c Mon Sep 17 00:00:00 2001 From: Anthony Date: Sat, 20 Jun 2026 22:08:27 +0200 Subject: [PATCH] fix(settings): preserve scroll position in settings nav (#2373) fix(settings): preserve scroll position in settings nav The settings nav scrolled back to the top on every Turbo navigation. preserve-scroll was applied to the nav element itself, but that element has no overflow - scrollTop was always 0, so nothing was ever saved. Apply preserve-scroll to the actual scrollable container (the sidebar div with md:overflow-y-auto) and give it an id so the controller can key the saved position. --- app/views/layouts/settings.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/settings.html.erb b/app/views/layouts/settings.html.erb index 8b112e3dd..2cd431793 100644 --- a/app/views/layouts/settings.html.erb +++ b/app/views/layouts/settings.html.erb @@ -3,7 +3,7 @@ <%= link_to t("layouts.application.skip_to_main"), "#main", class: "sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:px-3 focus:py-2 focus:rounded-lg focus:bg-container focus:text-primary focus:shadow-border-xs" %> -
+
<%= render "settings/settings_nav" %>