Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import {Fragment} from 'react';
import {HamburgerMenuIcon} from '@radix-ui/react-icons';
import Image from 'next/image';
import Link from 'next/link';

import SentryLogoSVG from 'sentry-docs/logos/sentry-logo-dark.svg';

Expand Down Expand Up @@ -44,7 +45,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
</label>
</button>
)}
<a
<Link
href="/"
title="Sentry error monitoring"
className="flex flex-shrink-0 items-center lg:w-[calc(var(--sidebar-width,300px)-2rem)] text-2xl font-medium text-[var(--foreground)]"
Expand All @@ -58,7 +59,7 @@ export function Header({pathname, searchPlatforms, noSearch}: Props) {
/>
</div>
Docs
</a>
</Link>
{!noSearch && (
<div className="hidden md:flex justify-center lg:justify-start w-full px-6">
<Search path={pathname} searchPlatforms={searchPlatforms} showChatBot />
Expand Down
12 changes: 6 additions & 6 deletions tailwind.config.js → tailwind.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
const defaultTheme = require('tailwindcss/defaultTheme');
import defaultTheme from 'tailwindcss/defaultTheme';

import Typography from '@tailwindcss/typography';
import Forms from '@tailwindcss/forms';
import {
isolateInsideOfContainer,
scopedPreflightStyles,
} from 'tailwindcss-scoped-preflight';

/** @type {import('tailwindcss').Config} */
module.exports = {
export default {
darkMode: ['selector', '.dark'],
content: ['./app/**/*.{js,ts,jsx,tsx}', './src/components/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
Expand Down Expand Up @@ -60,10 +62,8 @@ module.exports = {
},
},
plugins: [
require('@tailwindcss/typography'),
require('@tailwindcss/forms')({
strategy: 'class',
}),
Typography,
Forms({strategy: 'class'}),
scopedPreflightStyles({
// pretty minimalistic example. Same options as in the previous example are available
isolationStrategy: isolateInsideOfContainer('.tw-app'),
Expand Down
Loading