Fix deletion button text overflow

Agent-Logs-Url: https://github.com/we-promise/sure/sessions/e802e01f-079e-4322-ba03-b222ab5d4b84

Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-19 08:26:00 +00:00
committed by GitHub
parent 72efba610f
commit b35f4ea000
3 changed files with 3 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
<% end %>
<% unless icon_only? %>
<%= text %>
<span class="min-w-0 truncate"><%= text %></span>
<% end %>
<% if icon && icon_position == :right %>

View File

@@ -1,4 +1,4 @@
<%= render DS::Dialog.new(scrollable: false) do |dialog| %>
<%= render DS::Dialog.new do |dialog| %>
<% dialog.with_header(title: t(".delete_category"), subtitle: t(".explanation", category_name: @category.name)) %>
<% dialog.with_body do %>

View File

@@ -13,8 +13,7 @@ class Category::DeletionsControllerTest < ActionDispatch::IntegrationTest
get new_category_deletion_url(@category)
assert_response :success
assert_select "turbo-frame#modal"
assert_select "turbo-frame#modal dialog > div > div > div.grow.py-4.space-y-4.flex.flex-col", count: 1
assert_select "turbo-frame#modal dialog > div > div > div.overflow-auto", count: 0
assert_select "turbo-frame#modal button span.min-w-0.truncate", text: /Delete "Food & Drink" and leave uncategorized/
end
test "create with replacement" do