fix: Hide drag handles, empty captions, and selected outlines when printing (#6550)
This commit is contained in:
@@ -79,6 +79,10 @@ const Content = styled.p<{ $isSelected: boolean }>`
|
||||
color: ${s("placeholder")};
|
||||
content: attr(data-caption);
|
||||
pointer-events: none;
|
||||
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
@@ -26,6 +26,10 @@ export const ResizeLeft = styled.div<{ $dragging: boolean }>`
|
||||
box-shadow: 0 0 0 1px ${s("textSecondary")};
|
||||
opacity: 0.75;
|
||||
}
|
||||
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
`;
|
||||
|
||||
export const ResizeRight = styled(ResizeLeft)`
|
||||
|
||||
@@ -544,6 +544,10 @@ iframe.embed {
|
||||
.ProseMirror-selectednode {
|
||||
outline: 2px solid
|
||||
${props.readOnly ? "transparent" : props.theme.selected};
|
||||
|
||||
@media print {
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Make sure li selections wrap around markers */
|
||||
|
||||
Reference in New Issue
Block a user