This commit is contained in:
Vanessa 2024-01-29 15:44:18 +08:00
parent c8bb337ede
commit 2a8f8abc8d
11 changed files with 23 additions and 23 deletions

View file

@ -315,7 +315,7 @@ export const setMode = (modeElementValue: number) => {
const updateMobileTheme = (OSTheme: string) => {
if (isInIOS() || isInAndroid()) {
setTimeout(() => {
const backgroundColor = getComputedStyle(document.body).getPropertyValue("--b3-theme-background").trim();
const backgroundColor = getComputedStyle(document.body).getPropertyValue("--b3-theme-background").trim().replace(" ", "");
let mode = window.siyuan.config.appearance.mode;
if (window.siyuan.config.appearance.modeOS) {
if (OSTheme === "dark") {

View file

@ -1,6 +1,6 @@
const isNormalItem = (currentHintElement: HTMLElement, className: string) => {
return currentHintElement.classList.contains("fn__none") || !currentHintElement.classList.contains(className)
}
return currentHintElement.classList.contains("fn__none") || !currentHintElement.classList.contains(className);
};
export const upDownHint = (listElement: Element, event: KeyboardEvent, classActiveName = "b3-list-item--focus") => {
let currentHintElement: HTMLElement = listElement.querySelector("." + classActiveName);