Skip to content

Commit cf52a8d

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

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ and this project adheres to
2020

2121
- 🐛(frontend) fix duplicate document entries in grid #1479
2222
- 🐛(frontend) show full nested doc names with ajustable bar #1456
23+
- 🐛(frontend) fix pdf embed to use full width #1526
2324
- 🐛(backend) fix trashbin list
25+
2426
- ♿(frontend) improve accessibility:
2527
- ♿(frontend) remove empty alt on logo due to Axe a11y error #1516
2628

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)