Skip to content

Commit

Permalink
Tweaks to display ad styling (forem#19262)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ridhwana authored Mar 24, 2023
1 parent 1e1064d commit 15bb2e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 2 additions & 4 deletions app/assets/stylesheets/widgets.scss
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,9 @@
.crayons-layout__comments-display-ad {
.crayons-sponsorship {
.c-indicator.crayons-sponsorship__indicator {
line-height: 150%;
}
.crayons-sponsorship__dropdown {
margin-top: -15px;
line-height: 15px;
}

padding-left: var(--content-padding-x);
padding-bottom: var(--su-6);
.text-styles {
Expand Down
4 changes: 2 additions & 2 deletions app/views/shared/_display_ad.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
data-type-of="<%= display_ad.type_of %>">
<div class="crayons-sponsorship__header relative">
<% if display_ad.organization_id? && (display_ad.type_of == "community" || display_ad.type_of == "external") %>
<div class="flex align-center pt-5">
<div class="flex align-center">
<img width="24" height="24" class="radius-default crayons-sponsorship__image" src="<%= display_ad.organization.profile_image_url_for(length: 64) %>" alt="profile" loading="lazy" />
<div class="crayons-sponsorship__title ml-2 fs-s fw-medium"><%= display_ad.organization.name %></div>
<% if display_ad.type_of == "external" %>
<span class="crayons-sponsorship__indicator c-indicator c-indicator--subtle c-indicator--round fs-xs fw-medium ml-2 py-1 px-2"> <%= I18n.t("display_ad.promoted") %></span>
<% end %>
</div>
<% else %>
<div class="crayons-sponsorship__title pt-5"><%= Settings::Community.community_name %></div>
<div class="crayons-sponsorship__title"><%= Settings::Community.community_name %></div>
<% end %>

<button id="sponsorship-dropdown-trigger-<%= display_ad.id %>" aria-controls="sponsorship-dropdown-<%= display_ad.id %>" aria-expanded="false" aria-haspopup="true"
Expand Down

0 comments on commit 15bb2e5

Please sign in to comment.