Fix AI sidebar overflow when user hasn't enabled or created a chat yet (#2044)

This commit is contained in:
Zach Gollwitzer
2025-04-01 14:36:34 -04:00
committed by GitHub
parent f2020a816a
commit 02bfa9f251
3 changed files with 12 additions and 2 deletions

View File

@@ -67,7 +67,7 @@
<%# AI chat sidebar %>
<%= tag.div id: "chat-container",
style: "width: #{sidebar_config.dig(:right_panel, :initial_width)}px",
style: "width: #{sidebar_config.dig(:right_panel, :initial_width)}px; overflow: #{sidebar_config.dig(:right_panel, :overflow)}",
class: class_names("flex flex-col justify-between shrink-0 transition-all duration-300"),
data: { controller: "chat hotkey", sidebar_target: "rightPanel", turbo_permanent: true } do %>