Skip to content

Commit 5f1d82c

Browse files
authored
Fix rendering of select in cards (GitbookIO#2248)
1 parent 0894a74 commit 5f1d82c

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

e2e/pages.spec.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,17 +75,6 @@ const testCases: TestsCase[] = [
7575
},
7676
],
7777
},
78-
{
79-
name: 'Snyk',
80-
baseUrl: 'https://docs.snyk.io',
81-
tests: [
82-
{
83-
name: 'Home',
84-
url: '',
85-
run: waitForCookiesDialog,
86-
},
87-
],
88-
},
8978
{
9079
name: 'Versioning',
9180
baseUrl: 'https://gitbook.gitbook.io/test-1-1/',
@@ -151,6 +140,7 @@ const testCases: TestsCase[] = [
151140
name: 'Tables',
152141
url: 'blocks/tables',
153142
run: waitForCookiesDialog,
143+
fullPage: true,
154144
},
155145
{
156146
name: 'Expandables',

src/components/DocumentView/Table/RecordCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export async function RecordCard(
7979
'flex',
8080
'flex-col',
8181
'place-self-start',
82+
'gap-3',
8283
'p-4',
8384
'text-sm',
8485
target

src/components/DocumentView/Table/RecordColumnValue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export async function RecordColumnValue<Tag extends React.ElementType = 'div'>(
172172
case 'select': {
173173
return (
174174
<Tag className={tcls()}>
175-
<span className={tcls('inline-flex', 'gap-2')}>
175+
<span className={tcls('inline-flex', 'gap-2', 'flex-wrap')}>
176176
{(value as string[]).map((selectId) => {
177177
const option = definition.options.find(
178178
(option) => option.value === selectId,

0 commit comments

Comments
 (0)