mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 12:03:31 +01:00
fix(website): max height
This commit is contained in:
@@ -70,11 +70,11 @@ export default async function PackageLayout({ children, params }: PropsWithChild
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Providers>
|
<Providers>
|
||||||
<Banner />
|
<Banner className="mb-6" />
|
||||||
<main className="mx-auto max-w-7xl px-4 lg:max-w-full">
|
<main className="mx-auto max-w-7xl px-4 lg:max-w-full">
|
||||||
<Header />
|
<Header />
|
||||||
<div className="relative top-2.5 mx-auto max-w-7xl gap-6 lg:max-w-full lg:flex">
|
<div className="relative top-2.5 mx-auto max-w-7xl gap-6 lg:max-w-full lg:flex">
|
||||||
<div className="lg:sticky lg:top-23 lg:h-[calc(100vh_-_105px)]">
|
<div className="lg:sticky lg:top-23 lg:h-[calc(100vh_-_145px)]">
|
||||||
<Nav members={members.map((member) => serializeIntoSidebarItemData(member))} />
|
<Nav members={members.map((member) => serializeIntoSidebarItemData(member))} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
export function Banner() {
|
import type { HTMLAttributes } from 'react';
|
||||||
|
|
||||||
|
export function Banner({ className, ...props }: HTMLAttributes<HTMLDivElement>) {
|
||||||
return (
|
return (
|
||||||
<div className="mb-6 bg-blurple px-4 py-2 text-center text-sm text-white">
|
<div className={`bg-blurple px-4 py-2 text-center text-sm text-white ${className}`} {...props}>
|
||||||
You are reading the documentation for the <strong>next</strong> version of discord.js. Documentation for v13/v14+
|
You are reading the documentation for the <strong>next</strong> version of discord.js. Documentation for v13/v14+
|
||||||
has been moved to{' '}
|
has been moved to{' '}
|
||||||
<strong>
|
<strong>
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
import type { LinkProps } from 'next/link';
|
import type { LinkProps } from 'next/link';
|
||||||
import Link from 'next/link';
|
import Link from 'next/link';
|
||||||
import { usePathname } from 'next/navigation';
|
import { usePathname } from 'next/navigation';
|
||||||
import type { PropsWithChildren } from 'react';
|
import type { AnchorHTMLAttributes, PropsWithChildren, RefAttributes } from 'react';
|
||||||
import { useCurrentPathMeta } from '~/hooks/useCurrentPathMeta';
|
import { useCurrentPathMeta } from '~/hooks/useCurrentPathMeta';
|
||||||
|
|
||||||
export interface ItemLinkProps
|
export interface ItemLinkProps
|
||||||
extends Omit<LinkProps, 'href'>,
|
extends Omit<LinkProps, 'href'>,
|
||||||
React.RefAttributes<HTMLAnchorElement>,
|
RefAttributes<HTMLAnchorElement>,
|
||||||
Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, keyof LinkProps> {
|
Omit<AnchorHTMLAttributes<HTMLAnchorElement>, keyof LinkProps> {
|
||||||
className?: string;
|
className?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user