Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/react-notion-x/src/components/asset-wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const AssetWrapper: React.FC<{
className={cs(
'notion-asset-wrapper',
`notion-asset-wrapper-${block.type}`,
value.format?.block_full_width && 'notion-asset-wrapper-full',
blockId
)}
>
Expand Down
20 changes: 1 addition & 19 deletions packages/react-notion-x/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -790,8 +790,8 @@ svg.notion-page-icon {

.notion-asset-wrapper {
margin: 0.5rem 0;
max-width: 100vw;
min-width: 100%;
max-width: calc(100vw - 200px);
align-self: center;
display: flex;
flex-direction: column;
Expand All @@ -801,10 +801,6 @@ svg.notion-page-icon {
max-width: 100%;
}

.notion-asset-wrapper-full {
max-width: 100vw;
}

.notion-asset-wrapper img {
width: 100%;
height: 100%;
Expand All @@ -813,7 +809,6 @@ svg.notion-page-icon {

.notion-asset-wrapper iframe {
border: none;
background: rgb(247, 246, 245);
}

.notion-text {
Expand Down Expand Up @@ -2130,16 +2125,6 @@ svg.notion-page-icon {
max-width: 100% !important;
}

@media only screen and (max-width: 730px) {
.notion-asset-wrapper {
max-width: 100%;
}

.notion-asset-wrapper-full {
max-width: 100vw;
}
}

@media (max-width: 640px) {
.notion-bookmark-image {
display: none;
Expand Down Expand Up @@ -2548,9 +2533,6 @@ svg.notion-page-icon {
margin-bottom: 1em;
}

.notion-collection-group > summary {
}

.notion-collection-group > summary > div {
transform: scale(0.85);
transform-origin: 0% 50%;
Expand Down