-
Notifications
You must be signed in to change notification settings - Fork 4k
Restore borders on embed blocks with Captions #2755
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ export async function File(props: BlockProps<DocumentBlockFile>) { | |
const contentType = getSimplifiedContentType(file.contentType); | ||
|
||
return ( | ||
<Caption {...props} wrapperStyle={[]}> | ||
<Caption {...props}> | ||
<Link | ||
href={file.downloadURL} | ||
download={file.name} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SamyPesse I removed the styles and empty wrapperStyle that was passed to Caption in the Files block. As also mentioned in the PR description: "improves consistency by having the Files block adhere to the same bordering styles from Caption, it was using its own but these were a bit different" Let me know if you added explicitly different bordering styles on the Files block on purpose, but if not, I think its nice to streamline these styles while i'm at it. |
||
|
@@ -34,13 +34,9 @@ export async function File(props: BlockProps<DocumentBlockFile>) { | |
'flex', | ||
'flex-row', | ||
'items-center', | ||
'border', | ||
'px-5', | ||
'py-3', | ||
'border-dark/3', | ||
'rounded-lg', | ||
'hover:text-primary-600', | ||
'dark:border-light/3', | ||
'dark:hover:text-primary-300', | ||
)} | ||
> | ||
|
Uh oh!
There was an error while loading. Please reload this page.