Skip to content

Commit dc64134

Browse files
authored
fix: resolve datasets container rounded corners disappearing during scroll (langgenius#23667)
1 parent 431e010 commit dc64134

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

web/app/(commonLayout)/datasets/container.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ const Container = () => {
8686
}, [currentWorkspace, router])
8787

8888
return (
89-
<div ref={containerRef} className='scroll-container relative flex grow flex-col overflow-y-auto bg-background-body'>
90-
<div className='sticky top-0 z-10 flex h-[80px] shrink-0 flex-wrap items-center justify-between gap-y-2 bg-background-body px-12 pb-2 pt-4 leading-[56px]'>
89+
<div ref={containerRef} className={`scroll-container relative flex grow flex-col overflow-y-auto rounded-t-xl outline-none ${activeTab === 'dataset' ? 'bg-background-body' : 'bg-components-panel-bg'}`}>
90+
<div className={`sticky top-0 z-10 flex shrink-0 flex-wrap items-center justify-between gap-y-2 rounded-t-xl px-6 py-2 ${activeTab === 'api' ? 'border-b border-solid border-b-divider-regular' : ''} ${activeTab === 'dataset' ? 'bg-background-body' : 'bg-components-panel-bg'}`}>
9191
<TabSliderNew
9292
value={activeTab}
9393
onChange={newActiveTab => setActiveTab(newActiveTab)}

web/app/(commonLayout)/datasets/doc.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const Doc = ({ apiBaseUrl }: DocProps) => {
193193
</button>
194194
)}
195195
</div>
196-
<article className={cn('prose-xl prose mx-1 rounded-t-xl bg-background-default px-4 pt-16 sm:mx-12', theme === Theme.dark && 'prose-invert')}>
196+
<article className={cn('prose-xl prose', theme === Theme.dark && 'prose-invert')}>
197197
{Template}
198198
</article>
199199
</div>

web/app/components/base/tab-slider-new/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ const TabSliderNew: FC<TabSliderProps> = ({
2525
key={option.value}
2626
onClick={() => onChange(option.value)}
2727
className={cn(
28-
'mr-1 flex h-[32px] cursor-pointer items-center rounded-lg border-[0.5px] border-transparent px-3 py-[7px] text-[13px] font-medium leading-[18px] text-text-tertiary hover:bg-components-main-nav-nav-button-bg-active',
29-
value === option.value && 'border-components-main-nav-nav-button-border bg-components-main-nav-nav-button-bg-active text-components-main-nav-nav-button-text-active shadow-xs',
28+
'mr-1 flex h-[32px] cursor-pointer items-center rounded-lg border-[0.5px] border-transparent px-3 py-[7px] text-[13px] font-medium leading-[18px] text-text-tertiary hover:bg-state-base-hover',
29+
value === option.value && 'border-components-main-nav-nav-button-border bg-state-base-hover text-components-main-nav-nav-button-text-active shadow-xs',
3030
)}
3131
>
3232
{option.icon}

web/app/components/header/header-wrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const HeaderWrapper = ({
1313
children,
1414
}: HeaderWrapperProps) => {
1515
const pathname = usePathname()
16-
const isBordered = ['/apps', '/datasets', '/datasets/create', '/tools'].includes(pathname)
16+
const isBordered = ['/apps', '/datasets/create', '/tools'].includes(pathname)
1717
// Check if the current path is a workflow canvas & fullscreen
1818
const inWorkflowCanvas = pathname.endsWith('/workflow')
1919
const workflowCanvasMaximize = localStorage.getItem('workflow-canvas-maximize') === 'true'

0 commit comments

Comments
 (0)