mirror of
https://github.com/we-promise/sure.git
synced 2026-04-26 07:24:11 +00:00
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:
committed by
GitHub
parent
72efba610f
commit
b35f4ea000
@@ -4,7 +4,7 @@
|
||||
<% end %>
|
||||
|
||||
<% unless icon_only? %>
|
||||
<%= text %>
|
||||
<span class="min-w-0 truncate"><%= text %></span>
|
||||
<% end %>
|
||||
|
||||
<% if icon && icon_position == :right %>
|
||||
|
||||
@@ -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 %>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user