mirror of
https://github.com/we-promise/sure.git
synced 2026-04-26 07:24:11 +00:00
Fix category delete dialog dropdown overflow
Agent-Logs-Url: https://github.com/we-promise/sure/sessions/200da7a4-fd59-4ae4-a709-f631ccf21e8c Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
3d5cd0c4a2
commit
0e85f1d4ea
@@ -1,4 +1,4 @@
|
||||
<%= render DS::Dialog.new do |dialog| %>
|
||||
<%= render DS::Dialog.new(scrollable: false) do |dialog| %>
|
||||
<% dialog.with_header(title: t(".delete_category"), subtitle: t(".explanation", category_name: @category.name)) %>
|
||||
|
||||
<% dialog.with_body do %>
|
||||
|
||||
@@ -4,11 +4,16 @@ class Category::DeletionsControllerTest < ActionDispatch::IntegrationTest
|
||||
setup do
|
||||
sign_in users(:family_admin)
|
||||
@category = categories(:food_and_drink)
|
||||
tailwind_build = Rails.root.join("app/assets/builds/tailwind.css")
|
||||
FileUtils.mkdir_p(tailwind_build.dirname)
|
||||
File.write(tailwind_build, "/* test */") unless tailwind_build.exist?
|
||||
end
|
||||
|
||||
test "new" do
|
||||
get new_category_deletion_url(@category)
|
||||
assert_response :success
|
||||
assert_select "turbo-frame#modal"
|
||||
assert_match(/<div class="grow py-4 space-y-4 flex flex-col ">/, response.body)
|
||||
end
|
||||
|
||||
test "create with replacement" do
|
||||
|
||||
Reference in New Issue
Block a user