Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin0h committed Dec 18, 2024
1 parent 48ef54f commit 00379b0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function TableOfContents(props: {
'flex-grow',
'min-h-0',
'lg:bg-sidebar-background',
'lg:-ms-sidebar-indent',
'lg:-ms-5',
'rounded-xl',
'straight-corners:rounded-none',
)}
Expand Down
4 changes: 2 additions & 2 deletions packages/gitbook/src/components/primitives/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client';

import type { HTMLAttributes } from 'react';
import type { ComponentPropsWithoutRef, HTMLAttributes } from 'react';

import { ClassValue, tcls } from '@/lib/tailwind';
import { tcls, ClassValue } from '@/lib/tailwind';

import { Link } from './Link';

Expand Down
6 changes: 1 addition & 5 deletions packages/gitbook/src/lib/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,7 @@ export function getURLLookupAlternatives(input: URL) {
let basePath: string | undefined = undefined;
let changeRequest: string | undefined = undefined;
let revision: string | undefined = undefined;
const alternatives: Array<{
url: string;
extraPath: string;
primary: boolean;
}> = [];
const alternatives: Array<{ url: string; extraPath: string; primary: boolean }> = [];

const pushAlternative = (adding: URL, extraPath: string) => {
const existing = alternatives.find((alt) => alt.url === adding.toString());
Expand Down
3 changes: 0 additions & 3 deletions packages/gitbook/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ const config: Config = {
mono: ['var(--font-mono)'],
var: ['var(--font-family)'],
},
spacing: {
'sidebar-indent': '1.25rem',
},
colors: {
// Dynamic colors matching the customization settings

Expand Down

0 comments on commit 00379b0

Please sign in to comment.