fix typo grap gap (#9777)

This commit is contained in:
co63oc 2025-09-02 12:36:45 +08:00 committed by GitHub
parent 2480822690
commit 001253b32d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 8 deletions

View File

@ -53,8 +53,8 @@ export const Text: React.FC<React.HTMLAttributes<HTMLSpanElement>> = ({ style, c
)
// VStack 组件
export const VStack: React.FC<{ grap?: number; align?: string; children: React.ReactNode }> = ({
grap = 5,
export const VStack: React.FC<{ gap?: number; align?: string; children: React.ReactNode }> = ({
gap = 5,
align = 'stretch',
children,
...props
@ -64,7 +64,7 @@ export const VStack: React.FC<{ grap?: number; align?: string; children: React.R
display: 'flex',
flexDirection: 'column',
alignItems: align,
gap: `${grap}px`
gap: `${gap}px`
}}
{...props}>
{children}
@ -88,8 +88,8 @@ export const GridItem: React.FC<
)
// HStack 组件
export const HStack: React.FC<{ grap?: number; children: React.ReactNode; style?: React.CSSProperties }> = ({
grap,
export const HStack: React.FC<{ gap?: number; children: React.ReactNode; style?: React.CSSProperties }> = ({
gap,
children,
style,
...props
@ -99,7 +99,7 @@ export const HStack: React.FC<{ grap?: number; children: React.ReactNode; style?
display: 'inline-flex',
flexDirection: 'row',
alignItems: 'center',
gap: grap ? `${grap}px` : '5px',
gap: gap ? `${gap}px` : '5px',
...style
}}
{...props}>

View File

@ -59,7 +59,7 @@ const TreeNode: React.FC<TreeNodeProps> = ({ node, handleClick, treeData, paddin
handleClick(node.id)
}}>
<GridItem colSpan={8} style={{ paddingLeft: `${paddingLeft}px`, textAlign: 'left' }}>
<HStack grap={2}>
<HStack gap={2}>
<IconButton
aria-label="Toggle"
aria-expanded={isOpen ? true : false}

View File

@ -156,7 +156,7 @@ export const TracePage: React.FC<TracePageProp> = ({ topicId, traceId, modelName
<SimpleGrid columns={1} templateColumns="1fr">
<Box padding={0} className="scroll-container">
{showList ? (
<VStack grap={1} align="start">
<VStack gap={1} align="start">
{spans.length === 0 ? (
<Text>Trace信息</Text>
) : (