From 23c01a97be0d662f4b085e70b31228c166293730 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 4 Jan 2023 12:43:19 +0100 Subject: [PATCH] Fix text alignment classes --- app/views/admin/announcement/edit.html.haml | 2 +- app/views/admin/announcement/new.html.haml | 2 +- app/views/application/_answerbox.html.haml | 4 ++-- app/views/modal/_ask.html.haml | 2 +- app/views/moderation/_moderationbox.html.haml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/admin/announcement/edit.html.haml b/app/views/admin/announcement/edit.html.haml index 6d95600a..49afd0cf 100644 --- a/app/views/admin/announcement/edit.html.haml +++ b/app/views/admin/announcement/edit.html.haml @@ -17,7 +17,7 @@ = f.datetime_field :ends_at, data: { target: "#announcement_ends_at", "date-format": "YYYY-MM-DD hh:mm A" } .row - .col-md-12.text-right + .col-md-12.text-end = f.submit class: "btn btn-primary" - provide(:title, generate_title(t(".title"))) diff --git a/app/views/admin/announcement/new.html.haml b/app/views/admin/announcement/new.html.haml index eb9ea988..0fec9801 100644 --- a/app/views/admin/announcement/new.html.haml +++ b/app/views/admin/announcement/new.html.haml @@ -17,7 +17,7 @@ = f.datetime_field :ends_at, data: { target: "#announcement_ends_at", "date-format": "YYYY-MM-DD hh:mm A" } .row - .col-md-12.text-right + .col-md-12.text-end = f.submit class: "btn btn-primary" - provide(:title, generate_title(t(".title"))) diff --git a/app/views/application/_answerbox.html.haml b/app/views/application/_answerbox.html.haml index 4be146ed..57e2afa7 100644 --- a/app/views/application/_answerbox.html.haml +++ b/app/views/application/_answerbox.html.haml @@ -15,7 +15,7 @@ = markdown a.content - if @user.nil? .row - .col-sm-6.text-left.text-muted + .col-sm-6.text-start.text-muted .media .pull-left %a{ href: user_path(a.user) } @@ -29,7 +29,7 @@ = render "answerbox/actions", a: a, display_all: display_all - else .row - .col-md-6.text-left.text-muted + .col-md-6.text-start.text-muted %i.fa.fa-clock-o = link_to(raw(t("time.distance_ago", time: time_tooltip(a))), answer_path(a.user.screen_name, a.id), class: "answerbox__permalink") .col-md-6.d-md-flex.answerbox__actions diff --git a/app/views/modal/_ask.html.haml b/app/views/modal/_ask.html.haml index badb7bc0..0fe61305 100644 --- a/app/views/modal/_ask.html.haml +++ b/app/views/modal/_ask.html.haml @@ -8,7 +8,7 @@ .modal-body .form-group.has-feedback %textarea.form-control{ name: "qb-all-question", placeholder: t(".placeholder"), data: { "character-count-target": "input" } } - %p.text-right.text-muted.form-control-feedback{ data: { "character-count-target": "counter" } } 512 + %p.text-end.text-muted.form-control-feedback{ data: { "character-count-target": "counter" } } 512 .modal-footer %button.btn.btn-default{ type: :button, data: { dismiss: :modal } }= t("voc.cancel") %button.btn.btn-primary{ name: "qb-all-ask", type: :button, data: { "character-count-target": "action", loading_text: t(".loading") } }= t(".action") diff --git a/app/views/moderation/_moderationbox.html.haml b/app/views/moderation/_moderationbox.html.haml index 5c8546cc..721177af 100644 --- a/app/views/moderation/_moderationbox.html.haml +++ b/app/views/moderation/_moderationbox.html.haml @@ -21,12 +21,12 @@ - next if reason.strip.blank? = reason.strip .row - .col-md-8.col-sm-8.col-xs-8.text-left + .col-md-8.col-sm-8.col-xs-8.text-start %a.btn.btn-primary{ href: content_url(report) } = t(".view", content: report.type.sub("Reports::", "")) - if report.target.respond_to?(:user) && report.target.user %a.btn.btn-primary{ href: user_path(report.target.user) } = t(".view", content: t("activerecord.models.user.one")) - .col-md-4.col-sm-4.col-xs-4.text-right + .col-md-4.col-sm-4.col-xs-4.text-end %button.btn.btn-default.btn-sm{ type: :button, name: "mod-delete-report", data: { id: report.id } } %i.fa.fa-trash-o