mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:38:17 +08:00
UX: fix bulk select top positioning (#11888)
This commit is contained in:
parent
598c7d2fcb
commit
0990112d80
|
@ -9,13 +9,11 @@ export default Component.extend({
|
|||
this._super(...arguments);
|
||||
|
||||
schedule("afterRender", () => {
|
||||
let mainOutletPadding =
|
||||
window.getComputedStyle(document.querySelector("#main-outlet"))
|
||||
.paddingTop || 0;
|
||||
let headerHeight =
|
||||
document.querySelector(".d-header-wrap").offsetHeight || 0;
|
||||
|
||||
document.querySelector(
|
||||
".bulk-select-container"
|
||||
).style.top = mainOutletPadding;
|
||||
document.querySelector(".bulk-select-container").style.top =
|
||||
headerHeight + 20 + "px";
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -173,7 +173,6 @@
|
|||
#bulk-select {
|
||||
position: fixed;
|
||||
right: 20px;
|
||||
top: 130px;
|
||||
background-color: var(--secondary);
|
||||
z-index: z("dropdown");
|
||||
@supports (position: sticky) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user