Make sidebar billboard margins consistent and handle varied browser sizes for overflow (#19635)
This commit is contained in:
parent
62ff54cb94
commit
1ff5e91cce
2 changed files with 4 additions and 2 deletions
|
|
@ -13,6 +13,8 @@
|
|||
background: var(--card-bg);
|
||||
color: var(--card-secondary-color);
|
||||
box-shadow: 0 0 0 1px var(--card-secondary-border);
|
||||
max-height: calc(100vh - var(--header-height) - 2*var(--layout-padding));
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
&--elevated {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<% @actor = @article.organization || @article.user %>
|
||||
<div class="crayons-article-sticky grid gap-4 break-word" id="article-show-primary-sticky-nav">
|
||||
<div class="crayons-article-sticky grid gap-4 pb-4 break-word" id="article-show-primary-sticky-nav">
|
||||
<div class="crayons-card crayons-card--secondary branded-7 p-4 pt-0 gap-4 grid" style="border-top-color: <%= Color::CompareHex.new([user_colors(@actor)[:bg], user_colors(@actor)[:text]]).brightness(0.88) %>;">
|
||||
<%= render "shared/profile_card_content", actor: @actor, context: "sidebar" %>
|
||||
</div>
|
||||
|
|
@ -55,4 +55,4 @@
|
|||
<% end %>
|
||||
</div>
|
||||
|
||||
<div class="crayons-article-sticky grid gap-4 break-word pt-4 js-display-ad-container" data-async-url="<%= article_display_ad_path(username: @article.username, slug: @article.slug, placement_area: :post_sidebar) %>"></div>
|
||||
<div class="crayons-article-sticky grid gap-4 break-word js-display-ad-container" data-async-url="<%= article_display_ad_path(username: @article.username, slug: @article.slug, placement_area: :post_sidebar) %>"></div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue