Use CSS to define alignment in translations message

That way it's possible to override the style without changing the HTML,
which is the hardest code to customize and maintain.
This commit is contained in:
Javi Martín
2023-01-30 15:05:29 +01:00
parent efc69e8663
commit 1778a7563b
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
.remote-translations-button { .remote-translations-button {
text-align: center;
&.callout { &.callout {
margin: 0; margin: 0;

View File

@@ -1,4 +1,4 @@
<div class="remote-translations-button callout primary text-center"> <div class="remote-translations-button callout primary">
<% if display_remote_translation_button? %> <% if display_remote_translation_button? %>
<%= form_tag remote_translations_path do %> <%= form_tag remote_translations_path do %>
<%= hidden_field_tag :remote_translations, remote_translations.to_json %> <%= hidden_field_tag :remote_translations, remote_translations.to_json %>