diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index 8cf67d4d6..b14b265ed 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -47,6 +47,10 @@ body.admin { .is-featured { margin-top: rem-calc(36); } + + .select-order { + min-width: rem-calc(160); + } } // 02. Sidebar @@ -201,12 +205,16 @@ body.admin { .button.tiny.success { margin-left: rem-calc(12); + + &.no-margin { + margin-left: 0; + } } .moderation-description { max-height: rem-calc(65); overflow: hidden; - max-width: rem-calc(750); + max-width: rem-calc(590); &:hover { cursor: text; diff --git a/app/views/admin/debates/index.html.erb b/app/views/admin/debates/index.html.erb index a1dff1137..9718d4fa9 100644 --- a/app/views/admin/debates/index.html.erb +++ b/app/views/admin/debates/index.html.erb @@ -19,8 +19,9 @@ restore_admin_debate_path(debate, request.query_parameters), method: :put, data: { confirm: t("admin.actions.confirm") }, - class: "button radius tiny success right" %> - + class: "button radius tiny success no-margin" %> + + <% unless debate.confirmed_hide? %> <%= link_to t("admin.actions.confirm_hide"), confirm_hide_admin_debate_path(debate, request.query_parameters), diff --git a/app/views/admin/proposals/index.html.erb b/app/views/admin/proposals/index.html.erb index a7646a75d..8e6369836 100644 --- a/app/views/admin/proposals/index.html.erb +++ b/app/views/admin/proposals/index.html.erb @@ -19,8 +19,9 @@ restore_admin_proposal_path(proposal, request.query_parameters), method: :put, data: { confirm: t("admin.actions.confirm") }, - class: "button radius tiny success right" %> - + class: "button radius tiny success no-margin" %> + + <% unless proposal.confirmed_hide? %> <%= link_to t("admin.actions.confirm_hide"), confirm_hide_admin_proposal_path(proposal, request.query_parameters), diff --git a/app/views/moderation/debates/index.html.erb b/app/views/moderation/debates/index.html.erb index 60a5cf0dd..ddf7e2cb9 100644 --- a/app/views/moderation/debates/index.html.erb +++ b/app/views/moderation/debates/index.html.erb @@ -13,7 +13,7 @@ <%= form_tag moderate_moderation_debates_path(request.query_parameters), method: :put do %> -

+

<%= t('shared.check') %>: <%= link_to t('shared.check_all'), '#', data: {check_all: "debate_ids[]"} %> | diff --git a/app/views/moderation/proposals/index.html.erb b/app/views/moderation/proposals/index.html.erb index 38957eb7d..96ee19879 100644 --- a/app/views/moderation/proposals/index.html.erb +++ b/app/views/moderation/proposals/index.html.erb @@ -13,7 +13,7 @@ <%= form_tag moderate_moderation_proposals_path(request.query_parameters), method: :put do %> -

+

<%= t('shared.check') %>: <%= link_to t('shared.check_all'), '#', data: {check_all: "proposal_ids[]"} %> | diff --git a/app/views/shared/_order_selector.html.erb b/app/views/shared/_order_selector.html.erb index 489977718..244f3b95f 100644 --- a/app/views/shared/_order_selector.html.erb +++ b/app/views/shared/_order_selector.html.erb @@ -4,7 +4,7 @@ %>

- <% @valid_orders.each do |order| %>