diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index f52045c7b..e99392fc1 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -111,6 +111,23 @@ body.admin { padding: $line-height !important; } +@include breakpoint(medium) { + + tr { + + .on-hover-block { + display: none; + } + + &:hover .on-hover-block { + display: block; + margin: 0; + margin-top: $line-height/2; + width: 100%; + } + } +} + @include breakpoint(medium) { tr { diff --git a/app/views/admin/comments/index.html.erb b/app/views/admin/comments/index.html.erb index 4166be938..75493857c 100644 --- a/app/views/admin/comments/index.html.erb +++ b/app/views/admin/comments/index.html.erb @@ -20,12 +20,12 @@ restore_admin_comment_path(comment, request.query_parameters), method: :put, data: { confirm: t("admin.actions.confirm") }, - class: "button hollow on-hover" %> + class: "button hollow on-hover-block" %> <% unless comment.confirmed_hide? %> <%= link_to t("admin.actions.confirm_hide"), confirm_hide_admin_comment_path(comment, request.query_parameters), method: :put, - class: "button hollow warning on-hover" %> + class: "button hollow warning on-hover-block" %> <% end %> diff --git a/app/views/admin/proposals/index.html.erb b/app/views/admin/proposals/index.html.erb index cbe1e6d74..d929843b1 100644 --- a/app/views/admin/proposals/index.html.erb +++ b/app/views/admin/proposals/index.html.erb @@ -27,12 +27,12 @@ restore_admin_proposal_path(proposal, request.query_parameters), method: :put, data: { confirm: t("admin.actions.confirm") }, - class: "button hollow on-hover" %> + class: "button hollow on-hover-block" %> <% unless proposal.confirmed_hide? %> <%= link_to t("admin.actions.confirm_hide"), confirm_hide_admin_proposal_path(proposal, request.query_parameters), method: :put, - class: "button hollow warning on-hover" %> + class: "button hollow warning on-hover-block" %> <% end %>