Skip to content

Commit 0547a4b

Browse files
committed
Fix safari and firefox table visibility
1 parent 8197b12 commit 0547a4b

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: npm ci
1919
- run: npm run lint
2020
- run: npm run ts
21-
- run: npm run test
21+
- run: npm run test:unit
2222

2323
e2e-tests:
2424
timeout-minutes: 60

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
],
1313
"scripts": {
1414
"start": "storybook dev -p 6006",
15-
"test": "jest",
15+
"test:unit": "jest",
16+
"test:e2e": "npx playwright test",
17+
"test:chromatic": "npx chromatic ",
1618
"ts": "tsc",
1719
"lint": "eslint \"src/**/*.{ts,tsx}\"",
1820
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",

src/steps/SelectHeaderStep/SelectHeaderStep.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ export const SelectHeaderStep = ({ data, onContinue }: SelectHeaderProps) => {
3232
<>
3333
<ModalBody pb={0}>
3434
<Heading {...styles.heading}>{translations.selectHeaderStep.title}</Heading>
35-
<Box h={0} flexGrow={1}>
36-
<SelectHeaderTable data={data} selectedRows={selectedRows} setSelectedRows={setSelectedRows} />
37-
</Box>
35+
<SelectHeaderTable data={data} selectedRows={selectedRows} setSelectedRows={setSelectedRows} />
3836
</ModalBody>
3937
<ContinueButton
4038
onContinue={handleContinue}

src/steps/ValidationStep/ValidationStep.tsx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -133,25 +133,23 @@ export const ValidationStep = <T extends string>({ initialData, file }: Props<T>
133133
</Switch>
134134
</Box>
135135
</Box>
136-
<Box h={0} flexGrow={1}>
137-
<Table
138-
rowKeyGetter={rowKeyGetter}
139-
rows={tableData}
140-
onRowsChange={updateRow}
141-
columns={columns}
142-
selectedRows={selectedRows}
143-
onSelectedRowsChange={setSelectedRows}
144-
components={{
145-
noRowsFallback: (
146-
<Box display="flex" justifyContent="center" gridColumn="1/-1" mt="32px">
147-
{filterByErrors
148-
? translations.validationStep.noRowsMessageWhenFiltered
149-
: translations.validationStep.noRowsMessage}
150-
</Box>
151-
),
152-
}}
153-
/>
154-
</Box>
136+
<Table
137+
rowKeyGetter={rowKeyGetter}
138+
rows={tableData}
139+
onRowsChange={updateRow}
140+
columns={columns}
141+
selectedRows={selectedRows}
142+
onSelectedRowsChange={setSelectedRows}
143+
components={{
144+
noRowsFallback: (
145+
<Box display="flex" justifyContent="center" gridColumn="1/-1" mt="32px">
146+
{filterByErrors
147+
? translations.validationStep.noRowsMessageWhenFiltered
148+
: translations.validationStep.noRowsMessage}
149+
</Box>
150+
),
151+
}}
152+
/>
155153
</ModalBody>
156154
<ContinueButton onContinue={onContinue} title={translations.validationStep.nextButtonTitle} />
157155
</>

src/theme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ export const themeOverrides = {
361361
border: "none",
362362
borderTop: "1px solid var(--rdg-border-color)",
363363
blockSize: "100%",
364+
flex: "1",
364365

365366
// we have to use vars here because chakra does not autotransform unknown props
366367
"--rdg-row-height": "35px",

0 commit comments

Comments
 (0)