Skip to content

A platform for community discussion. Free, open, simple.

UX: fix bulk select top positioning (#11888)

Kris0990112d806e
diff --git a/app/assets/javascripts/discourse/app/components/bulk-select-button.js b/app/assets/javascripts/discourse/app/components/bulk-select-button.js
index f0dc4c48c7a..9f46112d23d 100644
--- a/app/assets/javascripts/discourse/app/components/bulk-select-button.js
+++ b/app/assets/javascripts/discourse/app/components/bulk-select-button.js
@@ -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";
});
},
diff --git a/app/assets/stylesheets/desktop/topic-list.scss b/app/assets/stylesheets/desktop/topic-list.scss
index a09fca51320..6aadf558dcb 100644
--- a/app/assets/stylesheets/desktop/topic-list.scss
+++ b/app/assets/stylesheets/desktop/topic-list.scss
@@ -173,7 +173,6 @@
#bulk-select {
position: fixed;
right: 20px;
- top: 130px;
background-color: var(--secondary);
z-index: z("dropdown");
@supports (position: sticky) {