Skip to content

Commit 3984faf

Browse files
committed
✨(frontend) fix pdf embed to use full width
Signed-off-by: Cyril <c.gromoff@gmail.com>
1 parent 2f010cf commit 3984faf

File tree

1 file changed

+2
-2
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks

1 file changed

+2
-2
lines changed

src/frontend/apps/impress/src/features/docs/doc-editor/components/custom-blocks/PdfBlock.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import { Box, Icon } from '@/components';
2222
import { DocsBlockNoteEditor } from '../../types';
2323

2424
const PDFBlockStyle = createGlobalStyle`
25-
.bn-block-content[data-content-type="pdf"] {
26-
width: fit-content;
25+
.bn-block-content[data-content-type="pdf"] .bn-file-block-content-wrapper[style*="fit-content"] {
26+
width: 100% !important;
2727
}
2828
`;
2929

0 commit comments

Comments
 (0)