+
diff --git a/public/scripts/ui-main.js b/public/scripts/ui-main.js
index 41cf99c..409a29c 100644
--- a/public/scripts/ui-main.js
+++ b/public/scripts/ui-main.js
@@ -125,9 +125,12 @@ class HeaderUI {
}
async evaluateOverflowing() {
- // remove and reset bracket icon before evaluating
+ // remove bracket icon before evaluating
this.$expandBtn.setAttribute('hidden', true);
+ // reset bracket icon rotation and header overflow
this.$expandBtn.classList.add('flipped');
+ this.$header.classList.remove('overflow-expanded');
+
const rtlLocale = Localization.isCurrentLocaleRtl();
let icon;
@@ -152,7 +155,7 @@ class HeaderUI {
}
else {
// no overflowing
- // add overflowing-hidden class
+ // remove overflowing-hidden class
this.$header.classList.remove('overflow-hidden');
}
}
@@ -169,6 +172,7 @@ class HeaderUI {
this.$header.classList.remove('overflow-expanded');
this.$expandBtn.classList.add('flipped');
}
+ Events.fire('header-changed');
}
}
diff --git a/public/scripts/ui.js b/public/scripts/ui.js
index 8c0efd8..3e448d6 100644
--- a/public/scripts/ui.js
+++ b/public/scripts/ui.js
@@ -37,6 +37,7 @@ class PeersUI {
Events.on('dragleave', _ => this._onDragEnd());
Events.on('dragend', _ => this._onDragEnd());
Events.on('resize', _ => this._evaluateOverflowingPeers());
+ Events.on('header-changed', _ => this._evaluateOverflowingPeers());
Events.on('paste', e => this._onPaste(e));
Events.on('activate-share-mode', e => this._activateShareMode(e.detail.files, e.detail.text));
@@ -1586,7 +1587,7 @@ class EditPairedDevicesDialog extends Dialog {
${autoAcceptString}
-