Skip to content

Commit ec42aa3

Browse files
committed
fix/Increase z-index of popover to 3
1 parent 09bd6d0 commit ec42aa3

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

app/assets/stylesheets/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
position: -webkit-sticky; /* Safari */
1313
position: fixed;
1414
top: 0;
15-
z-index: 2;
15+
z-index: 3;
1616
margin-bottom: $topbar-margin;
1717
}
1818

app/controllers/snippets_controller.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ def destroy
175175
@snippet = current_user.snippets.find(params[:id])
176176

177177
if @snippet&.destroy
178-
flash[:notice] = 'Snippet deleted!'
179-
180178
render json: { resource_id: @snippet.client_id }
181179
else
182180
head :bad_request

app/views/shared/_popover_trigger.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
data-controller="popover"
44
data-action="click->popover#display click@window->popover#hide"
55
data-popover-url="<%= popover_path %>"
6-
class="z-1 flex position-<%= defined?(position) ? position : 'relative' %>"
6+
class="z-3 flex position-<%= defined?(position) ? position : 'relative' %>"
77
>
88
<% if defined?(content) %>
99
<%= yield content %>

0 commit comments

Comments
 (0)