fix statusbar
This commit is contained in:
+7
-10
@@ -509,17 +509,14 @@ export const stringToFragment = (string: string) => {
|
|||||||
* @param op
|
* @param op
|
||||||
*/
|
*/
|
||||||
export const changeMobileStatusBar = (op: "enable" | "disable") => {
|
export const changeMobileStatusBar = (op: "enable" | "disable") => {
|
||||||
|
const bar = document.querySelector(
|
||||||
|
".is-mobile .app-container .status-bar"
|
||||||
|
) as HTMLElement;
|
||||||
if (op === "enable") {
|
if (op === "enable") {
|
||||||
(
|
bar.style.setProperty("display", "flex");
|
||||||
document.querySelector(
|
bar.style.setProperty("margin-bottom", "40px");
|
||||||
".is-mobile .app-container .status-bar"
|
|
||||||
) as HTMLElement
|
|
||||||
).style.setProperty("display", "flex");
|
|
||||||
} else {
|
} else {
|
||||||
(
|
bar.style.removeProperty("display");
|
||||||
document.querySelector(
|
bar.style.removeProperty("margin-bottom");
|
||||||
".is-mobile .app-container .status-bar"
|
|
||||||
) as HTMLElement
|
|
||||||
).style.setProperty("display", "none");
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user