Billboards Ownership Style Rules (#19176)
* display ad partial * add translations * replace views with partial * add context types * check if ad is community * not fully rounded * fix spec * updated styling * adjust spacing
This commit is contained in:
parent
727705dc89
commit
b5744b08c6
2 changed files with 6 additions and 3 deletions
|
|
@ -335,11 +335,9 @@
|
|||
}
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
border-radius: var(--radius);
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
margin: 10px auto;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,12 @@
|
|||
data-category-impression="<%= DisplayAdEvent::CATEGORY_IMPRESSION %>"
|
||||
data-context-type="<%= data_context_type %>">
|
||||
<div class="crayons-sponsorship__header relative">
|
||||
<div class="crayons-sponsorship__title"><%= Settings::Community.community_name %></div>
|
||||
<% if Page.exists?(slug: "billboards") && display_ad.organization_id? && display_ad.type_of == "community" %>
|
||||
<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 pl-1 fs-s"><%= display_ad.organization.name %></div>
|
||||
<% else %>
|
||||
<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"
|
||||
class="dropBtn crayons-sponsorship__dropdown crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon"
|
||||
aria-label="<%= t("display_ad.menu.aria_label") %>">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue