Skip to content

Commit

Permalink
Rename .text-left and .text-right to
Browse files Browse the repository at this point in the history
.text-start and .text-end.
  • Loading branch information
tomdonarski committed Jan 15, 2024
1 parent 39701af commit 33448df
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/views/spree/admin/cms_pages/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<div class="col"></div>
<% end %>

<div class="col-12 col-sm text-right pt-3 pt-sm-0">
<div class="col-12 col-sm text-end pt-3 pt-sm-0">
<button id="toggleMorePageSettingsButton" class="btn btn-light" type="button" data-toggle="collapse" data-target="#cmsPageSettings" aria-expanded="false" aria-controls="collapsePageSettings">
<%= raw Spree.t('admin.cms.more_page_settings') %>
</button>
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/admin/digitals/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<span>Name:</span> <span class="text-secondary"><%= digital.attachment.filename %></span><br>
<span>Size:</span> <span class="text-secondary"><%= number_to_human_size(digital.attachment.byte_size) %></span>
</div>
<div class="col p-2 text-right delete-digital-button-container">
<div class="col p-2 text-end delete-digital-button-container">
<%= link_to (svg_icon name: "close.svg", width: '20', height: '20'), admin_product_digital_url(@product, digital), data: { confirm: Spree.t('admin.digitals.delete_file_confirmation', filename: digital.attachment.filename) }, method: :delete, class: 'btn delete-resource delete-digital-asset' %>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/admin/shared/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<%= render partial: 'spree/admin/shared/store_switcher' %>
</div>

<div class="col text-right p-0">
<div class="col text-end p-0">
<%= render partial: 'spree/admin/shared/account_nav' %>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/admin/shared/_main_menu.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<nav class="pb-3 pt-lg-3 px-1">
<div class="text-right d-lg-none ps-3 py-2 border-bottom d-flex align-items-center">
<div class="text-end d-lg-none ps-3 py-2 border-bottom d-flex align-items-center">
<div class="d-flex flex-grow-1 text-primary"></div>
<button
id="sidebar-close"
Expand Down
10 changes: 5 additions & 5 deletions app/views/spree/admin/shared/_order_summary.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<% if @order.completed? %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small data-hook='admin_order_tab_date_completed_title'><%= Spree.t(:date_completed) %></small>
<span class="text-right small font-weight-bold" id='date_complete'>
<span class="text-end small font-weight-bold" id='date_complete'>
<%= pretty_time(@order.completed_at) %>
</span>
</li>
Expand All @@ -48,14 +48,14 @@
<% if @order.approved? %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small><%= Spree.t(:approved_at) %></small>
<span class="text-right small font-weight-bold">
<span class="text-end small font-weight-bold">
<%= pretty_time(@order.approved_at) %>
</span>
</li>
<% if @order.approver.present? %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small><%= Spree.t(:approver) %></small>
<span class="text-right small font-weight-bold">
<span class="text-end small font-weight-bold">
<%= link_to @order.approver.email, spree.admin_users_path(@order.approver) %>
</span>
</li>
Expand All @@ -65,14 +65,14 @@
<% if @order.canceled? && @order.canceled_at %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small><%= Spree.t(:canceled_at) %></small>
<span class="text-right small font-weight-bold">
<span class="text-end small font-weight-bold">
<%= pretty_time(@order.canceled_at) %>
</span>
</li>
<% if @order.canceler.present? %>
<li class="list-group-item d-flex justify-content-between align-items-center">
<small><%= Spree.t(:canceler) %></small>
<span class="text-right small font-weight-bold">
<span class="text-end small font-weight-bold">
<%= link_to @order.canceler.email, spree.admin_users_path(@order.canceler) %>
</span>
</li>
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/admin/shared/_sidebar.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="d-lg-none page-actions__close border-bottom text-right">
<div class="d-lg-none page-actions__close border-bottom text-end">
<button
id="contextual-menu-close"
class="btn btn-link"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<tbody id="translations_body" data-hook="translations_body">
<% resource.class.translatable_fields.each do |field| %>
<tr id="translates_field_row" data-hook="translates_field_row">
<td class="text-left" style="min-width: 12.5rem; position: absolute; background-color: white; height: 3.5rem">
<td class="text-start" style="min-width: 12.5rem; position: absolute; background-color: white; height: 3.5rem">
<span><%= Spree.t(field) %></span>
</td>
<td style="min-width: 12.5rem; display: block; height: 100%"></td>
Expand Down

0 comments on commit 33448df

Please sign in to comment.