fix type error
This commit is contained in:
parent
aeccce0f89
commit
f8a99113bf
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
export function setTopbarOffset() {
|
export function setTopbarOffset() {
|
||||||
const height = document.getElementById("topbar")!.getBoundingClientRect().height;
|
const height = document.getElementById("topbar")!.getBoundingClientRect().height;
|
||||||
document.querySelector(":root")!.style = `--topbar-offset: ${height}px;`
|
const root: HTMLElement = document.querySelector(":root")!;
|
||||||
|
root.style.setProperty("--topbar-offset", `${height}px`);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function addToggleDropdownListener() {
|
export function addToggleDropdownListener() {
|
||||||
|
Loading…
Reference in New Issue
Block a user