From 4b55156e21912c244bb28fe7b88e7b4d3e020125 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Sun, 1 Feb 2026 15:33:08 +0100 Subject: [PATCH] scroll to end of logs --- app/javascript/controllers/mood_controller.js | 4 ++++ app/views/moods/index.html.erb | 1 + 2 files changed, 5 insertions(+) diff --git a/app/javascript/controllers/mood_controller.js b/app/javascript/controllers/mood_controller.js index e56ef0b..2d63a12 100644 --- a/app/javascript/controllers/mood_controller.js +++ b/app/javascript/controllers/mood_controller.js @@ -12,4 +12,8 @@ export default class extends Controller { modeDayMobile.textContent = modeDayContent; modeDay.textContent = modeDayContent; } + + connect() { + window.location = "#end"; + } } diff --git a/app/views/moods/index.html.erb b/app/views/moods/index.html.erb index 5415abe..0ad5297 100644 --- a/app/views/moods/index.html.erb +++ b/app/views/moods/index.html.erb @@ -56,6 +56,7 @@ <% end %> <% end %> +