Skip to content

Commit 697f51d

Browse files
authored
Merge pull request #23 from archit-p/styling-updates
Update table overflow styling
2 parents cbae178 + 83f27db commit 697f51d

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function App() {
193193

194194
return (
195195
<div
196-
className="overflow-y-hidden"
196+
className="overflow-hidden"
197197
style={{
198198
width: '100vw',
199199
height: '100vh',

src/Table.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default function Table({
104104
}
105105

106106
return (
107-
<>
107+
<div style={{ maxWidth: '100vw', overflow: 'auto' }}>
108108
<div
109109
{...getTableProps()}
110110
className={clsx('table', isTableResizing() && 'noselect')}
@@ -136,6 +136,6 @@ export default function Table({
136136
</div>
137137
</div>
138138
</div>
139-
</>
139+
</div>
140140
);
141141
}

src/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ html {
340340
overflow: auto;
341341
}
342342

343+
.overflow-hidden {
344+
overflow: hidden;
345+
}
346+
343347
.overflow-y-hidden {
344348
overflow-y: hidden;
345349
}

0 commit comments

Comments
 (0)