-
Notifications
You must be signed in to change notification settings - Fork 162
Added bookmark block #2
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
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.
Cool thank you!
Is the HTML/CSS from Notion directly?
I think we can minimize the HTML & CSS there!
src/block.tsx
Outdated
<div> | ||
<div> | ||
<div> | ||
<img src={blockValue.format.bookmark_cover} /> | ||
</div> | ||
</div> | ||
</div> |
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.
I think we don't need so many nested div's here :)
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.
I copied all the css from notion yes, and also their html markup. I'll minimize it! :)
- Hide image when inside column - Add support for custom background colors - Add alt tags to images
Looking good! 👍 |
Cool package! Thought I'd take a look at the bookmark block. :)