diff --git a/app/assets/stylesheets/avo.base.css b/app/assets/stylesheets/avo.base.css index 67fa61f8d..5e852c75c 100644 --- a/app/assets/stylesheets/avo.base.css +++ b/app/assets/stylesheets/avo.base.css @@ -92,3 +92,11 @@ trix-editor { dialog#turbo-confirm { @apply bg-transparent; } + +/* TODO: make content like tailwindcss */ +.floating-row-controls { + &:before { + content: ""; + @apply absolute z-10 inset-auto left-0 top-0 mt-0 -translate-x-full w-3 h-full bg-gradient-to-l from-white to-transparent group-hover:from-gray-50; + } +} diff --git a/app/components/avo/index/table_row_component.html.erb b/app/components/avo/index/table_row_component.html.erb index 48b77e14e..f21daabba 100644 --- a/app/components/avo/index/table_row_component.html.erb +++ b/app/components/avo/index/table_row_component.html.erb @@ -1,6 +1,6 @@ <%# hover:z-[21] removed from tr class to solve flickering actions component on row controls and z-20 changed to z-21%> <%= content_tag :tr, - class: class_names("bg-white hover:bg-gray-50 hover:shadow-row z-21 border-b", {"cursor-pointer": click_row_to_view_record}), + class: class_names("group bg-white hover:bg-gray-50 z-21 border-b", {"cursor-pointer": click_row_to_view_record}), data: { component_name: self.class.to_s.underscore, resource_name: @resource.class.to_s, @@ -42,8 +42,8 @@ <% end %> <% end %> <% if Avo.configuration.resource_controls_on_the_right? %> -