function rebuildMobileNavigation(navigation: HTMLElement): void {
navigation.querySelectorAll(".button").forEach((button: HTMLElement) => {
- if (button.classList.contains("ignoreMobileNavigation")) {
- // The reaction button was hidden up until 5.2.2, but was enabled again in 5.2.3. This check
- // exists to make sure that there is no unexpected behavior in 3rd party apps or plugins that
- // used the same code and hid the reaction button via a CSS class in the template.
- if (!button.classList.contains("reactButton")) {
- return;
- }
+ if (button.classList.contains("ignoreMobileNavigation") || button.classList.contains("reactButton")) {
+ return;
}
const item = document.createElement("li");
}
function rebuildMobileNavigation(navigation) {
navigation.querySelectorAll(".button").forEach((button) => {
- if (button.classList.contains("ignoreMobileNavigation")) {
- // The reaction button was hidden up until 5.2.2, but was enabled again in 5.2.3. This check
- // exists to make sure that there is no unexpected behavior in 3rd party apps or plugins that
- // used the same code and hid the reaction button via a CSS class in the template.
- if (!button.classList.contains("reactButton")) {
- return;
- }
+ if (button.classList.contains("ignoreMobileNavigation") || button.classList.contains("reactButton")) {
+ return;
}
const item = document.createElement("li");
if (button.classList.contains("active")) {
}
@include screen-sm-down {
- display: block;
- margin-top: 0 !important;
- pointer-events: none;
- position: absolute;
- right: -1px;
- top: 9px;
-
- > li {
- height: 0;
- overflow: hidden;
- }
+ margin-left: auto;
+
+ .button:not(.reactButton) {
+ display: none;
+ }
+
+ .button.reactButton {
+ border-radius: 2px;
+ }
}
}
opacity: 1;
}
}
-
+
.messageFooterButtons,
.messageFooterButtonsExtra {
- @extend .buttonGroup;
+ @extend .buttonGroup;
justify-content: flex-end;