Fix text alignment classes

This commit is contained in:
Andreas Nedbal 2023-01-04 12:43:19 +01:00 committed by Andreas Nedbal
parent 6643c65e23
commit 23c01a97be
5 changed files with 7 additions and 7 deletions

View File

@ -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")))

View File

@ -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")))

View File

@ -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

View File

@ -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")

View File

@ -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