mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
fix(website): remove layout shift (#9062)
Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
@@ -4,7 +4,7 @@ import { Documentation } from '../../documentation/Documentation';
|
||||
import { EnumMember } from './EnumMember';
|
||||
import { Panel } from '~/components/Panel';
|
||||
import { ObjectHeader } from '~/components/documentation/ObjectHeader';
|
||||
import { ResponsiveSection } from '~/components/documentation/section/ResponsiveSection';
|
||||
import { DocumentationSection } from '~/components/documentation/section/DocumentationSection';
|
||||
import { SummarySection } from '~/components/documentation/section/SummarySection';
|
||||
|
||||
export function Enum({ item }: { item: ApiEnum }) {
|
||||
@@ -12,7 +12,7 @@ export function Enum({ item }: { item: ApiEnum }) {
|
||||
<Documentation>
|
||||
<ObjectHeader item={item} />
|
||||
<SummarySection item={item} />
|
||||
<ResponsiveSection icon={<VscSymbolEnum size={20} />} padded title="Members">
|
||||
<DocumentationSection icon={<VscSymbolEnum size={20} />} padded title="Members">
|
||||
<div className="flex flex-col gap-4">
|
||||
{item.members.map((member) => (
|
||||
<Panel key={member.containerKey}>
|
||||
@@ -20,7 +20,7 @@ export function Enum({ item }: { item: ApiEnum }) {
|
||||
</Panel>
|
||||
))}
|
||||
</div>
|
||||
</ResponsiveSection>
|
||||
</DocumentationSection>
|
||||
</Documentation>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user