Fix google lighthouse issues (#1013)
This commit is contained in:
parent
a63405ca7c
commit
adb809f973
|
@ -22,6 +22,7 @@ export function ManifoldLogo(props: {
|
||||||
src={darkBackground ? '/logo-white.svg' : '/logo.svg'}
|
src={darkBackground ? '/logo-white.svg' : '/logo.svg'}
|
||||||
width={45}
|
width={45}
|
||||||
height={45}
|
height={45}
|
||||||
|
alt=""
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{!hideText &&
|
{!hideText &&
|
||||||
|
|
|
@ -11,13 +11,13 @@ function SidebarButton(props: {
|
||||||
}) {
|
}) {
|
||||||
const { text, children } = props
|
const { text, children } = props
|
||||||
return (
|
return (
|
||||||
<a className="group flex items-center rounded-md px-3 py-2 text-sm font-medium text-gray-600 hover:cursor-pointer hover:bg-gray-100">
|
<button className="group flex w-full items-center rounded-md px-3 py-2 text-sm font-medium text-gray-600 hover:cursor-pointer hover:bg-gray-100">
|
||||||
<props.icon
|
<props.icon
|
||||||
className="-ml-1 mr-3 h-6 w-6 flex-shrink-0 text-gray-400 group-hover:text-gray-500"
|
className="-ml-1 mr-3 h-6 w-6 flex-shrink-0 text-gray-400 group-hover:text-gray-500"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
<span className="truncate">{text}</span>
|
<span className="truncate">{text}</span>
|
||||||
{children}
|
{children}
|
||||||
</a>
|
</button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,10 +74,7 @@ function MyApp({ Component, pageProps }: AppProps<ManifoldPageProps>) {
|
||||||
content="https://manifold.markets/logo-bg-white.png"
|
content="https://manifold.markets/logo-bg-white.png"
|
||||||
key="image2"
|
key="image2"
|
||||||
/>
|
/>
|
||||||
<meta
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
name="viewport"
|
|
||||||
content="width=device-width, initial-scale=1, maximum-scale=1"
|
|
||||||
/>
|
|
||||||
</Head>
|
</Head>
|
||||||
<AuthProvider serverUser={pageProps.auth}>
|
<AuthProvider serverUser={pageProps.auth}>
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { ENV_CONFIG } from 'common/envs/constants'
|
||||||
|
|
||||||
export default function Document() {
|
export default function Document() {
|
||||||
return (
|
return (
|
||||||
<Html data-theme="mantic" className="min-h-screen">
|
<Html lang="en" data-theme="mantic" className="min-h-screen">
|
||||||
<Head>
|
<Head>
|
||||||
<link rel="icon" href={ENV_CONFIG.faviconPath} />
|
<link rel="icon" href={ENV_CONFIG.faviconPath} />
|
||||||
<link
|
<link
|
||||||
|
|
Loading…
Reference in New Issue
Block a user