Skip to content
This repository was archived by the owner on May 4, 2023. It is now read-only.

Commit 8a71d1e

Browse files
chore: updated positioning of scrollbars
1 parent 6fe2383 commit 8a71d1e

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/renderer/components/CookbookTable/CookbookTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ type CookbookTableProps = {
4343

4444
export default function CookbookTable({ cookbooks, page }: CookbookTableProps) {
4545
return (
46-
<Box w="full" overflow="auto">
47-
<TableContainer>
46+
<Box w="full" h="full" overflow="hidden">
47+
<TableContainer h="full" overflowY="scroll" overflowX="scroll">
4848
<Table variant="simple">
4949
<Tbody>
5050
{cookbooks.map((cookbook) => {

src/renderer/components/CookbookTable/CookbookTableLoading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const Td = (props: TableCellProps) => (
1515

1616
export default function CookbookTableLoading() {
1717
return (
18-
<Box w="full" overflow="auto">
19-
<TableContainer>
18+
<Box w="full" h="full" overflow="hidden">
19+
<TableContainer h="full" overflowY="scroll" overflowX="scroll">
2020
<Table variant="simple">
2121
<Tbody>
2222
{[1, 2, 3, 4, 5, 6, 7].map((num, i) => (

src/renderer/components/SnippetTable/SnippetTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ type SnippetTableProps = {
3232

3333
export default function SnippetTable({ page, recipes }: SnippetTableProps) {
3434
return (
35-
<Box w="full" overflow="auto">
36-
<TableContainer>
35+
<Box w="full" h="full" overflow="hidden">
36+
<TableContainer h="full" overflowY="scroll" overflowX="scroll">
3737
<Table variant="simple">
3838
<Tbody>
3939
{recipes.map((recipe) => {

src/renderer/components/SnippetTable/SnippetTableLoading.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const Td = (props: TableCellProps) => (
1515

1616
export default function SnippetTableLoading() {
1717
return (
18-
<Box w="full" overflow="auto">
19-
<TableContainer>
18+
<Box w="full" h="full" overflow="hidden">
19+
<TableContainer h="full" overflowY="scroll" overflowX="scroll">
2020
<Table variant="simple">
2121
<Tbody>
2222
{[1, 2, 3, 4, 5, 6, 7].map((num, i) => (

0 commit comments

Comments
 (0)