Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

Fix for scrollbars on alerts

Josh Pigford4118cc8a3193
diff --git a/app/views/issues/_issue.html.erb b/app/views/issues/_issue.html.erb
index cabb360c..76ee7c62 100644
--- a/app/views/issues/_issue.html.erb
+++ b/app/views/issues/_issue.html.erb
@@ -4,9 +4,9 @@
<% text_class = issue.critical? || issue.error? ? "text-error" : "text-warning" %>
<%= tag.div class: "flex gap-6 items-center rounded-xl px-4 py-3 #{priority_class}" do %>
- <div class="flex gap-3 items-center grow overflow-x-scroll <%= text_class %>">
+ <div class="flex gap-3 items-center grow <%= text_class %>">
<%= lucide_icon("alert-octagon", class: "w-5 h-5 shrink-0") %>
- <p class="text-sm whitespace-nowrap"><%= issue.title %></p>
+ <p class="text-sm break-words"><%= issue.title %></p>
</div>
<div class="flex items-center gap-4 ml-auto">