mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 16:46:12 +08:00
FIX: jumpy more sidebar section (#21430)
Bug introduced in PR https://github.com/discourse/discourse/pull/21398 More section needs to be wrapped in div with position:relative to have sticky and absolute position.
This commit is contained in:
parent
7aa2ede17f
commit
be1cbc7082
|
@ -10,18 +10,21 @@
|
|||
@label="sidebar.more"
|
||||
/>
|
||||
</li>
|
||||
{{#if this.open}}
|
||||
<div
|
||||
class="sidebar-more-section-links-details-content-wrapper"
|
||||
{{did-insert this.registerClickListener}}
|
||||
{{will-destroy this.unregisterClickListener}}
|
||||
>
|
||||
|
||||
<div class="sidebar-more-section-links-details-content">
|
||||
<div class="sidebar-more-section-links-details-content-main">
|
||||
{{#each this.sectionLinks as |sectionLink|}}
|
||||
<Sidebar::MoreSectionLink @sectionLink={{sectionLink}} />
|
||||
{{/each}}
|
||||
{{#if this.open}}
|
||||
<div class="sidebar-more-section-links-details">
|
||||
<div
|
||||
class="sidebar-more-section-links-details-content-wrapper"
|
||||
{{did-insert this.registerClickListener}}
|
||||
{{will-destroy this.unregisterClickListener}}
|
||||
>
|
||||
|
||||
<div class="sidebar-more-section-links-details-content">
|
||||
<div class="sidebar-more-section-links-details-content-main">
|
||||
{{#each this.sectionLinks as |sectionLink|}}
|
||||
<Sidebar::MoreSectionLink @sectionLink={{sectionLink}} />
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -35,9 +35,14 @@
|
|||
padding: 0.33rem calc(var(--d-sidebar-row-horizontal-padding) / 3);
|
||||
}
|
||||
}
|
||||
.sidebar-more-section-links-details-content-main {
|
||||
position: sticky;
|
||||
}
|
||||
.sidebar-more-section-links-details-content-wrapper {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
z-index: z("modal", "content") + 1;
|
||||
position: sticky;
|
||||
}
|
||||
.sidebar-more-section-links-details {
|
||||
position: relative;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user