-
Notifications
You must be signed in to change notification settings - Fork 4k
Support new coverDefinitionDark for cards & image type #3547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: dbb4d2f The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for a new coverDefinitionDark
field for table view cards, enabling different cover images for light and dark themes. The changes also introduce a new image column type for table records.
- Add
getRecordCardCovers
utility function to extract both light and dark cover images - Implement new image column type with proper image display and linking
- Update RecordCard component to handle dark theme covers with responsive layout considerations
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
File | Description |
---|---|
packages/gitbook/src/components/DocumentView/Table/utils.ts |
Adds getRecordCardCovers function and imports for new dark cover support |
packages/gitbook/src/components/DocumentView/Table/RecordColumnValue.tsx |
Implements new image column type with proper image rendering and link handling |
packages/gitbook/src/components/DocumentView/Table/RecordCard.tsx |
Updates card rendering to support both light and dark covers with responsive behavior |
.changeset/serious-pumas-clap.md |
Documents the feature addition for changelog generation |
packages/gitbook/src/components/DocumentView/Table/RecordCard.tsx
Outdated
Show resolved
Hide resolved
e7036d4
to
529f65d
Compare
529f65d
to
f3857be
Compare
f3857be
to
d42767b
Compare
packages/gitbook/src/components/DocumentView/Table/RecordCard.tsx
Outdated
Show resolved
Hide resolved
7ddeede
to
c9b426d
Compare
packages/gitbook/src/components/DocumentView/Table/RecordColumnValue.tsx
Outdated
Show resolved
Hide resolved
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
2a194a9
to
0246fb1
Compare
0246fb1
to
3139837
Compare
No description provided.