mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 14:49:58 -07:00
website: fix window resize brave bug
This commit is contained in:
@@ -1310,10 +1310,11 @@ function initFrameSelectors() {
|
||||
|
||||
function setAsideParent() {
|
||||
const { clientWidth } = window.document.documentElement;
|
||||
if (clientWidth >= consts.MEDIUM_WIDTH) {
|
||||
elements.body.append(elements.aside);
|
||||
} else {
|
||||
elements.main.append(elements.aside);
|
||||
const { aside, body, main } = elements;
|
||||
if (clientWidth >= consts.MEDIUM_WIDTH && aside.parentElement !== body) {
|
||||
body.append(aside);
|
||||
} else if (aside.parentElement !== main) {
|
||||
main.append(aside);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user