Skip to content

Commit

Permalink
set max-width to 960px for .container
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Nov 18, 2024
1 parent 6833162 commit 7d61e45
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ body {
background: #fffefe;
}

.container {
max-width: 960px;
}

.bg-primary { background-color: $red !important; }

.btn {
Expand Down
2 changes: 1 addition & 1 deletion app/views/home/_fee_listing.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="h4 text-muted">
<%= fee.fee_description %>
</div>
<div class="text-muted"><%= fee.item_title %></div>
<div class="text-muted text-truncate"><%= fee.item_title %></div>
</div>
<div class="col-12 col-md-3">
<div class="h4 text-muted">
Expand Down
2 changes: 1 addition & 1 deletion app/views/process_payments/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="h4 text-muted">
<%= record.fee.fee_description %>
</div>
<div class="text-muted"><%= record.fee.item_title %></div>
<div class="text-muted text-truncate"><%= record.fee.item_title %></div>
</div>
<div class="col-3 col-md-auto">
<div class="h4 text-muted">
Expand Down
8 changes: 4 additions & 4 deletions app/views/transactions/_transaction.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="mb-5">
<h3 class="border-bottom border-2 mb-4 h2"><%= format_date transaction.created_at %></h3>
<h3 class="border-bottom border-2 mb-4 h2 text-muted"><%= transaction.created_at.strftime("%A, %b %d %I:%M:%S %p") %></h3>

<div class="row">
<div class="col-12 col-md-9">
<div class="col-12 col-md-8">
<% transaction.records.each do |record| %>
<div class="mb-4">
<div class="h4 text-muted">
Expand All @@ -12,11 +12,11 @@
<span class="badge bg-secondary"><%= number_to_currency record.fee.balance %></span>
<% end %>
</div>
<div class="text-muted"><%= record.fee.nil? || record.fee.item_title.nil? ? 'Item title not available.' : record.fee.item_title %></div>
<div class="text-muted text-truncate"><%= record.fee.nil? || record.fee.item_title.nil? ? 'Item title not available.' : record.fee.item_title %></div>
</div>
<% end %>
</div>
<div class="col-12 col-md-3">
<div class="col-12 col-md-4">
<div class="card">
<h5 class="card-header text-white <%= 'bg-success' if ['APPROVED', 'PAID'].include?(transaction.status) %> <%= 'bg-info' if ['PROCESSING'].include?(transaction.status) %><%= 'bg-danger' if ['CANCELLED', 'DECLINED'].include?(transaction.status) %>">
<%= transaction.status %>
Expand Down

0 comments on commit 7d61e45

Please sign in to comment.