Files
dify/web/app/components/workflow/skill/content-area.tsx
yyh ff07ca97df fix: prevent horizontal page scroll in skill editor layout
Add overflow-hidden to SkillPageLayout and min-w-0 to flex children
to ensure wide content (like SQLite tables with many columns) scrolls
internally rather than causing the entire page to scroll horizontally.
2026-01-22 16:13:09 +08:00

15 lines
351 B
TypeScript

import type { FC, PropsWithChildren } from 'react'
import * as React from 'react'
type ContentAreaProps = PropsWithChildren
const ContentArea: FC<ContentAreaProps> = ({ children }) => {
return (
<section className="flex min-h-0 min-w-0 flex-1 flex-col rounded-lg">
{children}
</section>
)
}
export default React.memo(ContentArea)