diff --git a/src/api/electron.cjs b/src/api/electron.cjs index be38e83..c4bd916 100644 --- a/src/api/electron.cjs +++ b/src/api/electron.cjs @@ -71,12 +71,14 @@ const initDatabase = (namespace, fallbacks = {}) => { )`); init.run(); - // schema: - // - ("profileIds") = $profileId[] + // schema: + // - ("profileIds") -> $profileId[] // - ("activeProfile") -> $profileId // - $profileId: ("profileName") -> string + // - $profileId: ("telemetryEnabled") -> boolean // - $profileId__enabledMods: ($modId) -> boolean // - $profileId__$modId: ($optionKey) -> value + __statements = { insert: db.prepare(`INSERT INTO ${table} (key, value) VALUES (?, ?)`), update: db.prepare(`UPDATE ${table} SET value = ? WHERE key = ?`), diff --git a/src/core/menu/components/Description.mjs b/src/core/menu/components/Description.mjs index 8008e7d..34f4661 100644 --- a/src/core/menu/components/Description.mjs +++ b/src/core/menu/components/Description.mjs @@ -9,8 +9,8 @@ import { extendProps } from "../state.mjs"; function Description(props, ...children) { const { html } = globalThis.__enhancerApi; extendProps(props, { - class: `notion-enhancer--menu-description leading-[16px] - text-([12px] [color:var(--theme--fg-secondary)])`, + class: `notion-enhancer--menu-description typography + leading-[16px] text-([12px] [color:var(--theme--fg-secondary)])`, }); return html`
${children}
`; } diff --git a/src/core/menu/components/Heading.mjs b/src/core/menu/components/Heading.mjs index ea67197..1334e92 100644 --- a/src/core/menu/components/Heading.mjs +++ b/src/core/menu/components/Heading.mjs @@ -6,11 +6,11 @@ import { extendProps } from "../state.mjs"; -function Heading(props, children) { +function Heading(props, ...children) { const { html } = globalThis.__enhancerApi; extendProps(props, { - class: `notion-enhancer--menu-heading font-semibold - mb-[16px] mt-[48px] first:mt-0 pb-[12px] text-[16px] + class: `notion-enhancer--menu-heading flex items-center gap-[4px] + text-[16px] font-semibold mb-[16px] mt-[48px] first:mt-0 pb-[12px] border-b-(& [color:var(--theme--fg-border)])`, }); return html`