Skip to content

Commit 0b3289f

Browse files
committed
fix: removed horz scroll overflow on the list component
1 parent d353ac8 commit 0b3289f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • Website/components/datamodelview

Website/components/datamodelview/List.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ export const List = ({ setCurrentIndex }: IListProps) => {
234234

235235
{/* Virtualized list */}
236236
<div
237-
className={`m-6 transition-opacity duration-300 ${loadingSection ? 'opacity-0 pointer-events-none' : 'opacity-100'}`}
237+
className={`mx-6 my-6 transition-opacity duration-300 ${loadingSection ? 'opacity-0 pointer-events-none' : 'opacity-100'}`}
238238
style={{
239239
height: `${rowVirtualizer.getTotalSize()}px`,
240-
width: '100%',
240+
width: 'calc(100% - 48px)',
241241
position: 'relative',
242242
visibility: flatItems.length === 0 ? 'hidden' : 'visible'
243243
}}

0 commit comments

Comments
 (0)