diff --git a/components/Footer.tsx b/components/Footer.tsx
index e927b79606..d54a922117 100644
--- a/components/Footer.tsx
+++ b/components/Footer.tsx
@@ -38,18 +38,16 @@ export function FooterImpl() {
Copyright {currentYear} {config.author}
-
diff --git a/components/NotionPageHeader.tsx b/components/NotionPageHeader.tsx
index 5fbb087ce3..b0973bf794 100644
--- a/components/NotionPageHeader.tsx
+++ b/components/NotionPageHeader.tsx
@@ -23,12 +23,13 @@ function ToggleThemeButton() {
}, [toggleDarkMode])
return (
-
{hasMounted && isDarkMode ? : }
-
+
)
}
@@ -59,23 +60,22 @@ export function NotionPageHeader({
return (
{link.title}
)
- } else {
- return (
-
- {link.title}
-
- )
}
+ return (
+
+ {link.title}
+
+ )
})
.filter(Boolean)}
diff --git a/components/styles.module.css b/components/styles.module.css
index bea8ff1ed9..2cc1713170 100644
--- a/components/styles.module.css
+++ b/components/styles.module.css
@@ -66,7 +66,7 @@
user-select: none;
}
-.settings a,
+.settings button,
.social a {
cursor: pointer;
font-size: 2em;
@@ -76,18 +76,20 @@
transition: color 250ms ease-out;
}
-.settings a:last-of-type,
+.settings button:last-of-type,
.social a:last-of-type {
margin-right: 0;
}
-.settings a:hover,
+.settings button:hover,
.social a:hover {
transition: color 50ms ease-out;
}
-.toggleDarkMode:hover {
- color: #2795e9;
+.settings button {
+ /* Reset default button styles */
+ background: none;
+ border: none;
}
.twitter:hover {
diff --git a/lib/preview-images.ts b/lib/preview-images.ts
index 385ffd8945..6b97e67c08 100644
--- a/lib/preview-images.ts
+++ b/lib/preview-images.ts
@@ -1,9 +1,9 @@
import ky from 'ky'
import lqip from 'lqip-modern'
-import {
- type ExtendedRecordMap,
- type PreviewImage,
- type PreviewImageMap
+import type {
+ ExtendedRecordMap,
+ PreviewImage,
+ PreviewImageMap
} from 'notion-types'
import { getPageImageUrls, normalizeUrl } from 'notion-utils'
import pMap from 'p-map'
diff --git a/styles/global.css b/styles/global.css
index 7eee7abea3..0cd5e98e2e 100644
--- a/styles/global.css
+++ b/styles/global.css
@@ -2,7 +2,7 @@
box-sizing: border-box;
}
-a {
+a, button {
color: inherit;
text-decoration: none;
}
@@ -57,6 +57,6 @@ body {
background-color: var(--fg-color-1);
}
-::-webkit-scrollbar-track {
+::-webkit-scrollbar-track {
background-color: var(--bg-color);
}