mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-20 17:43:24 +00:00
Delete table.module.css
This commit is contained in:
@@ -3,8 +3,6 @@ import { useScrollListener } from '@/components/hooks/useScrollListener';
|
||||
import { tcls } from '@/lib/tailwind';
|
||||
import { type ReactNode, useCallback, useEffect, useLayoutEffect, useRef } from 'react';
|
||||
|
||||
import styles from './table.module.css';
|
||||
|
||||
interface StickyViewGridProps {
|
||||
className?: string;
|
||||
header: ReactNode;
|
||||
@@ -128,8 +126,7 @@ export function StickyViewGrid({ className, header, children }: StickyViewGridPr
|
||||
<div
|
||||
ref={bodyScrollRef}
|
||||
className={tcls(
|
||||
styles.tableScrollArea,
|
||||
'w-full min-w-0 overflow-x-auto overflow-y-hidden border-tint-subtle',
|
||||
'w-full min-w-0 overflow-x-auto overflow-y-hidden overscroll-x-none border-tint-subtle',
|
||||
'group-data-[scrollable=true]/table:mx-px',
|
||||
'group-data-[scrollable=true]/table:border-0',
|
||||
'group-data-[scrollable=true]/table:rounded-none'
|
||||
|
||||
@@ -9,7 +9,6 @@ import { StickyViewGrid } from './StickyViewGrid';
|
||||
import { ViewCards } from './ViewCards';
|
||||
import { ViewGrid, ViewGridHeader } from './ViewGrid';
|
||||
import { hasVisibleHeader } from './layout';
|
||||
import styles from './table.module.css';
|
||||
|
||||
export type TableRecordKV = [string, DocumentTableRecord];
|
||||
|
||||
@@ -75,8 +74,7 @@ export function Table(props: BlockProps<DocumentBlockTable>) {
|
||||
<div className={tcls(style, 'relative mx-auto grid w-full min-w-0')}>
|
||||
<div
|
||||
className={tcls(
|
||||
styles.tableScrollArea,
|
||||
'w-full min-w-0 overflow-x-auto overflow-y-hidden border-tint-subtle'
|
||||
'w-full min-w-0 overflow-x-auto overflow-y-hidden overscroll-x-none border-tint-subtle '
|
||||
)}
|
||||
>
|
||||
<div className={tcls('flex', 'flex-col', 'w-fit')}>
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
@reference "../../RootLayout/globals.css";
|
||||
|
||||
.tableScrollArea {
|
||||
overscroll-behavior-x: none;
|
||||
}
|
||||
Reference in New Issue
Block a user