From f1c875f84ef365f574ae100ead5e0d96ed66ed51 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Thu, 23 Sep 2021 10:33:05 -0400 Subject: [PATCH] [15 minute fix] Podcast fixes/clean up (#14790) * Podcast fixes/clean up * Remove unused pattern image line * Fix tests --- app/assets/stylesheets/ltags/PodcastTag.scss | 1 + .../stylesheets/user-profile-header.scss | 75 +------------------ app/views/organizations/_header.html.erb | 2 +- app/views/podcast_episodes/_liquid.html.erb | 7 +- app/views/podcast_episodes/index.html.erb | 20 ++--- app/views/podcast_episodes/show.html.erb | 3 +- app/views/users/show.html.erb | 2 +- .../loggedOutFlows/showLoginModal.spec.js | 2 +- .../podcastFlows/followPodcast.spec.js | 2 +- 9 files changed, 22 insertions(+), 92 deletions(-) diff --git a/app/assets/stylesheets/ltags/PodcastTag.scss b/app/assets/stylesheets/ltags/PodcastTag.scss index c15441322..942a919db 100644 --- a/app/assets/stylesheets/ltags/PodcastTag.scss +++ b/app/assets/stylesheets/ltags/PodcastTag.scss @@ -29,6 +29,7 @@ a { color: white; + text-decoration: none; .tinyimage { width: 22px; diff --git a/app/assets/stylesheets/user-profile-header.scss b/app/assets/stylesheets/user-profile-header.scss index 61098c71e..a0e4551bf 100644 --- a/app/assets/stylesheets/user-profile-header.scss +++ b/app/assets/stylesheets/user-profile-header.scss @@ -79,6 +79,9 @@ a { color: rgb(97, 97, 97); } + .crayons-btn--outlined { + background: white; + } .profile-pic-wrapper { float: left; width: calc(14.5vw + 60px); @@ -254,76 +257,4 @@ display: inline-block; margin-left: 5px; } - .user-profile-follow-button { - background: $green; - border: 0; - font-size: 17px; - border-radius: 3px; - vertical-align: 3px; - padding: 2px 6px; - cursor: pointer; - min-width: 120px; - opacity: 0.7; - &.showing { - opacity: 1; - } - @media screen and (min-width: 430px) { - font-size: 18px; - padding: 3px 8px; - vertical-align: 7px; - border-radius: 5px; - min-width: 140px; - } - @media screen and (min-width: 950px) { - font-size: 22px; - padding: 4px 8px; - vertical-align: 12px; - border-radius: 5px; - min-width: 140px; - } - } - - // same as above, just add class to above style - .user-profile-chat-button-wrapper { - position: relative; - z-index: 5; - display: inline-block; - margin-left: 5px; - } - - .user-profile-chat-button { - background: $green; - color: white; - border: 0; - font-size: 17px; - border-radius: 3px; - vertical-align: 3px; - padding: 2px 6px; - cursor: pointer; - min-width: 60px; - font-family: 'HelveticaNeue-CondensedBold', 'HelveticaNeueBoldCondensed', - 'HelveticaNeue-Bold-Condensed', 'Helvetica Neue Bold Condensed', - 'HelveticaNeueBold', 'HelveticaNeue-Bold', 'Helvetica Neue Bold', - 'HelveticaNeue', 'Helvetica Neue', 'TeXGyreHerosCnBold', 'Helvetica', - 'Tahoma', 'Geneva', 'Arial Narrow', 'Arial', sans-serif; - -webkit-appearance: none; - font-stretch: condensed; - &.showing { - opacity: 1; - } - @media screen and (min-width: 430px) { - font-size: 18px; - padding: 3px 8px; - vertical-align: 7px; - border-radius: 5px; - min-width: 80px; - } - @media screen and (min-width: 950px) { - font-size: 22px; - padding: 4px 8px; - vertical-align: 12px; - border-radius: 5px; - min-width: 80px; - } - } } diff --git a/app/views/organizations/_header.html.erb b/app/views/organizations/_header.html.erb index 58dfa3e2d..7f9e54d0d 100644 --- a/app/views/organizations/_header.html.erb +++ b/app/views/organizations/_header.html.erb @@ -19,7 +19,7 @@
diff --git a/app/views/podcast_episodes/_liquid.html.erb b/app/views/podcast_episodes/_liquid.html.erb index cd891c36c..6e81ed3aa 100644 --- a/app/views/podcast_episodes/_liquid.html.erb +++ b/app/views/podcast_episodes/_liquid.html.erb @@ -1,14 +1,11 @@ -<% image_url = Images::Optimizer.call(podcast.pattern_image_url || "https://i.imgur.com/fKYKgo4.png", crop: nil, fetch_format: "jpg") %> - -
+
diff --git a/app/views/podcast_episodes/index.html.erb b/app/views/podcast_episodes/index.html.erb index 8e094c3c5..703675f5b 100644 --- a/app/views/podcast_episodes/index.html.erb +++ b/app/views/podcast_episodes/index.html.erb @@ -2,18 +2,20 @@ <%= render "podcast_episodes/meta" %> <% end %> <% if @podcast %> - <% image = Images::Optimizer.call(@podcast.pattern_image_url || "https://i.imgur.com/fKYKgo4.png", fetch_format: "jpg", crop: nil) %> -