diff --git a/repo/collapsible-headers/client.mjs b/repo/collapsible-headers/client.mjs index 9dc41fc..4e0a6a1 100644 --- a/repo/collapsible-headers/client.mjs +++ b/repo/collapsible-headers/client.mjs @@ -182,7 +182,7 @@ export default async function ({ web }, db) { }; const insertToggles = async (event) => { - if ([...event.addedNodes].some(($node) => $node?.matches(pageScroller))) { + if ([...event.addedNodes].some(($node) => $node?.matches?.(pageScroller))) { collapseParentsCache = new Map(); collapsedBlocksCache = new Map(); return; diff --git a/repo/dracula/app.css b/repo/dracula/app.css index a16d964..fa864a5 100644 --- a/repo/dracula/app.css +++ b/repo/dracula/app.css @@ -27,10 +27,6 @@ filter: brightness(1.2); } -.notion-dark-theme [style*='font-family: Fira Code, Menlo, Courier, monospace;'] { - filter: hue-rotate(170deg) !important; -} - .notion-dark-theme .notion-token-remove-button[role*='button'][tabindex*='0']:hover, .notion-dark-theme .notion-record-icon { background: transparent !important; diff --git a/repo/menu/mod.json b/repo/menu/mod.json index 3fdbfd0..7689da9 100644 --- a/repo/menu/mod.json +++ b/repo/menu/mod.json @@ -24,8 +24,8 @@ "type": "hotkey", "key": "hotkey", "label": "toggle focus hotkey", - "value": "Ctrl+Alt+E", - "tooltip": "**switches between notion & the enhancer menu**" + "tooltip": "**switches between notion & the enhancer menu**", + "value": "Ctrl+Alt+E" } ] } diff --git a/repo/outliner/client.mjs b/repo/outliner/client.mjs index ca04b58..19b4b89 100644 --- a/repo/outliner/client.mjs +++ b/repo/outliner/client.mjs @@ -28,6 +28,7 @@ export default async function ({ web, components }, db) { $content: web.render(web.html`
`, $notice, $headingList), onFocus: () => { viewFocused = true; + $page = document.getElementsByClassName('notion-page-content')[0]; updateHeadings(); }, onBlur: () => { diff --git a/repo/pastel-dark/app.css b/repo/pastel-dark/app.css index 54e01f5..72e6138 100644 --- a/repo/pastel-dark/app.css +++ b/repo/pastel-dark/app.css @@ -25,10 +25,6 @@ filter: brightness(1.2); } -.notion-dark-theme [style*='font-family: iawriter-mono, Nitti, Menlo, Courier, monospace;'] { - filter: hue-rotate(170deg) !important; -} - .notion-dark-theme .notion-token-remove-button[role*='button'][tabindex*='0']:hover, .notion-dark-theme .notion-record-icon { background: transparent !important; diff --git a/repo/theming/patches.css b/repo/theming/patches.css index 8779394..26d62bc 100644 --- a/repo/theming/patches.css +++ b/repo/theming/patches.css @@ -153,6 +153,7 @@ } .notion-help-button, .onboarding-checklist-button { + opacity: 1 !important; color: var(--theme--tag_default-text); fill: var(--theme--tag_default-text); background: var(--theme--tag_default) !important; diff --git a/repo/theming/theme.css b/repo/theming/theme.css index c11799a..d02f59c 100644 --- a/repo/theming/theme.css +++ b/repo/theming/theme.css @@ -121,9 +121,9 @@ body, .notion-calendar-view .notion-selectable.notion-page-block.notion-collection-item > [style*='background:'], -.notion-overlay-container.notion-default-overlay-container - [style*='display: flex'] - > [style*='position: relative; max-width:'][style*='overflow: hidden']:not([style*='border-radius: 3px;'][style*='position: relative; max-width: calc(100vw - 24px); box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px; overflow: hidden;'][style*='padding: 4px 8px; font-size: 12px; line-height: 1.4; font-weight: 500;']), +[data-overlay] + > div + > [style*='position: relative; z-index: 1; box-shadow:'][style*='border-radius: 3px;'][style*='margin-bottom: 0px; top: 90px; overflow: hidden; width: 75%; max-width: 600px; min-height: 50px; max-height: 80vh;']:nth-child(2), .notion-overlay-container.notion-default-overlay-container [style*='display: flex'] > [style*='position: relative; max-width:'][style*='overflow: hidden'] diff --git a/repo/word-counter/client.mjs b/repo/word-counter/client.mjs index d7f35e5..3b865b2 100644 --- a/repo/word-counter/client.mjs +++ b/repo/word-counter/client.mjs @@ -66,6 +66,7 @@ export default async function ({ web, components }, db) { $content: web.render(web.html`
`, $notice, $statList), onFocus: () => { viewFocused = true; + $page = document.getElementsByClassName('notion-page-content')[0]; updateStats(); }, onBlur: () => {