From faeb5793baf408fa0ea7fc4425722842e41bc85e Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Sat, 23 May 2020 19:08:49 +0200 Subject: [PATCH] UI: various tweaks to polls UI on mobile (#9864) --- plugins/poll/assets/stylesheets/mobile/poll.scss | 7 +++++-- plugins/poll/config/locales/client.en.yml | 14 +++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/plugins/poll/assets/stylesheets/mobile/poll.scss b/plugins/poll/assets/stylesheets/mobile/poll.scss index 59b3046999c..34f8c7dc19e 100644 --- a/plugins/poll/assets/stylesheets/mobile/poll.scss +++ b/plugins/poll/assets/stylesheets/mobile/poll.scss @@ -1,9 +1,11 @@ div.poll { .poll-buttons { - padding: 0.5em 1em 1em 1em; + display: inline-flex; + flex-wrap: wrap; + padding: 0.5em 1em 0.5em 1em; button { - margin-right: 0.5em; + margin: 0 0.5em 0.5em 0; } } @@ -11,6 +13,7 @@ div.poll { padding: 0 1em; display: flex; flex-wrap: wrap; + flex-direction: column; .info-text { display: inline; } diff --git a/plugins/poll/config/locales/client.en.yml b/plugins/poll/config/locales/client.en.yml index 035630f4219..cd721d53815 100644 --- a/plugins/poll/config/locales/client.en.yml +++ b/plugins/poll/config/locales/client.en.yml @@ -43,15 +43,15 @@ en: multiple: help: at_least_min_options: - one: "Choose at least %{count} option" - other: "Choose at least %{count} options" + one: "Choose at least %{count} option." + other: "Choose at least %{count} options." up_to_max_options: - one: "Choose up to %{count} option" - other: "Choose up to %{count} options" + one: "Choose up to %{count} option." + other: "Choose up to %{count} options." x_options: - one: "Choose %{count} option" - other: "Choose %{count} options" - between_min_and_max_options: "Choose between %{min} and %{max} options" + one: "Choose %{count} option." + other: "Choose %{count} options." + between_min_and_max_options: "Choose between %{min} and %{max} options." cast-votes: title: "Cast your votes"