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