diff --git a/app/assets/stylesheets/dashboard.scss b/app/assets/stylesheets/dashboard.scss index 53303f387..dbe8c9897 100644 --- a/app/assets/stylesheets/dashboard.scss +++ b/app/assets/stylesheets/dashboard.scss @@ -31,19 +31,31 @@ border-radius: rem-calc(6); margin-bottom: $line-height; padding: $line-height / 2; + text-align: center; - .counter { - text-align: center; + @include breakpoint(medium only) { + .change-behaviour { + float: left; + margin-top: $line-height / 2; + padding: $line-height; + width: 100%; + } } .counter-divider { - @include breakpoint(medium) { border-left: 2px solid $highlight; + } + + @include breakpoint(large) { border-right: 2px solid $highlight; } } + .supports .counter-label { + display: block; + } + .counter-value { font-size: rem-calc(20); font-weight: bold; @@ -57,7 +69,7 @@ .progress { background: #f0efea; border-radius: rem-calc(6); - height: $line-height; + height: $line-height / 2; } .progress-meter { diff --git a/app/views/layouts/dashboard/_proposal_totals.html.erb b/app/views/layouts/dashboard/_proposal_totals.html.erb index 3c110b474..7b72cdd30 100644 --- a/app/views/layouts/dashboard/_proposal_totals.html.erb +++ b/app/views/layouts/dashboard/_proposal_totals.html.erb @@ -1,6 +1,6 @@
-
+
<%= Dashboard::Action.active.resources.active_for(proposal).count %> @@ -11,46 +11,51 @@
-
+
<%= number_with_delimiter(community_members_count, delimiter: '.') %>
<%= t("layouts.dashboard.proposal_totals.community") %>
-
-
-
- <%= number_with_delimiter(proposal.votes_for.size, delimiter: '.') %> - / - <%= t("layouts.dashboard.proposal_totals.support_count", count: number_with_delimiter(next_goal_supports, delimiter: '.')) %> +
+
+
+
+ <%= number_with_delimiter(proposal.votes_for.size, delimiter: '.') %> + / + <%= t("layouts.dashboard.proposal_totals.support_count", count: number_with_delimiter(next_goal_supports, delimiter: '.')).html_safe %> +
+ <%= t("layouts.dashboard.proposal_totals.current_goal") %> +
+ +
+ <%= next_goal_progress %>% +
+
" aria-valuemax="100"> +
- <%= t("layouts.dashboard.proposal_totals.current_goal") %>
-
-
-
-
-
- <%= next_goal_progress %>% -
-
" aria-valuemax="100"> -
-
-
+
+
+
-
- + +
+
+
diff --git a/config/locales/es/general.yml b/config/locales/es/general.yml index 46422fd8c..342a74dc9 100644 --- a/config/locales/es/general.yml +++ b/config/locales/es/general.yml @@ -211,8 +211,8 @@ es: preview_proposal: Previsualizar propuesta current_goal: Meta actual support_count: - one: "%{count} apoyo" - other: "%{count} apoyos" + one: "%{count} Apoyo" + other: "%{count} Apoyos" footer: accessibility: Accesibilidad conditions: Condiciones de uso