Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wide card styles #11176

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions app/assets/stylesheets/components/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,9 @@
background-color: color('white');
max-width: $container-skinny-width;

&-wide {
max-width: 100%;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
}

@include at-media('tablet') {
@include u-padding-x(10);
@include u-margin-bottom(8);
border-radius: 5px;

&-wide {
margin-top: units(6);
max-width: 100%;
padding-bottom: 0;
padding-left: 0;
padding-right: 0;
}
}
}
36 changes: 9 additions & 27 deletions app/views/test/telephony/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

<h1>Outbound calls and messages</h1>

<%= button_to 'Clear messages and calls', test_telephony_path, method: :delete, class: 'usa-button' %>

<div class="card card-wide">
<div class="padding-4">
<%= button_to 'Clear messages and calls', test_telephony_path, method: :delete, class: 'usa-button' %>
<div class="grid-row grid-gap margin-top-2">
<div class="tablet:grid-col-6">
<h2>Messages</h2>
<div class="grid-row grid-gap margin-top-2 flex-align-stretch">
<% [['Messages', @messages], ['Calls', @calls]].each do |title, messages| %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started to panic about the un-translated text but then realized this is an internal test page

<div class="tablet:grid-col-6">
<div class="card padding-4 height-full">
<h2 class="margin-0"><%= title %></h2>

<% @messages.each do |message| %>
<div class="lg-card margin-bottom-4">
<% messages.each do |message| %>
<div class="margin-top-4">
<p class="margin-y-05">
<strong>To:</strong> <%= message.to %>
</p>
Expand All @@ -26,24 +26,6 @@
</div>
<% end %>
</div>

<div class="tablet:grid-col-6">
<h2>Calls</h2>

<% @calls.each do |call| %>
<div class="lg-card margin-bottom-4">
<p class="margin-y-05">
<strong>To:</strong> <%= call.to %>
</p>
<p class="margin-y-05">
<strong>Body:</strong> <%= call.body %>
</p>
<p class="margin-y-05">
<strong>Sent at:</strong> <%= call.sent_at.strftime(t('time.formats.event_timestamp')) %>
</p>
</div>
<% end %>
</div>
</div>
</div>
<% end %>
</div>