From 87fffa133dbdcd4f35155226ec8198a30fc9d19d Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 30 Aug 2024 10:31:19 -0400 Subject: [PATCH] Remove wide card styles changelog: Internal, Performance, Reduce size of application stylesheet --- app/assets/stylesheets/components/_card.scss | 15 -------- app/views/test/telephony/index.html.erb | 36 +++++--------------- 2 files changed, 9 insertions(+), 42 deletions(-) diff --git a/app/assets/stylesheets/components/_card.scss b/app/assets/stylesheets/components/_card.scss index da275bb1d68..6f1ccadda8b 100644 --- a/app/assets/stylesheets/components/_card.scss +++ b/app/assets/stylesheets/components/_card.scss @@ -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; - } } } diff --git a/app/views/test/telephony/index.html.erb b/app/views/test/telephony/index.html.erb index 1ba0946de5a..9ecf05387ad 100644 --- a/app/views/test/telephony/index.html.erb +++ b/app/views/test/telephony/index.html.erb @@ -4,16 +4,16 @@

Outbound calls and messages

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

Messages

+
+ <% [['Messages', @messages], ['Calls', @calls]].each do |title, messages| %> +
+
+

<%= title %>

- <% @messages.each do |message| %> -
+ <% messages.each do |message| %> +

To: <%= message.to %>

@@ -26,24 +26,6 @@
<% end %>
- -
-

Calls

- - <% @calls.each do |call| %> -
-

- To: <%= call.to %> -

-

- Body: <%= call.body %> -

-

- Sent at: <%= call.sent_at.strftime(t('time.formats.event_timestamp')) %> -

-
- <% end %> -
-
+ <% end %>