Hide drag handle when printing, adjust heading actions for handle gutter

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Tom MoorandClaude Opus 4.7 committed 2026-10-09 22:13:31 -04:00
1 parent 0a2d129c08
commit acfff03e32
2 files changed
+12 -2

No files matched your search

+4 -2
View File
@@ -1215,7 +1215,9 @@ h6:not(.placeholder):not([data-heading-prefix])::before {
left: 0;
top: 0;
bottom: 0;
margin-left: -26px;
/* Offset further left than the default so the anchor clears the block
drag handle, which occupies the gutter immediately left of the heading. */
margin-left: -52px;
width: 26px;
align-items: center;
justify-content: center;
@@ -1239,7 +1241,7 @@ h6:not(.placeholder):not([data-heading-prefix])::before {
&:dir(rtl) {
margin-left: 0;
margin-right: -26px;
margin-right: -52px;
}
}
+8
View File
@@ -174,4 +174,12 @@ export default createGlobalStyle<Props>`
.drop-cursor {
border-radius: 9999px;
}
/* Block drag handle is appended to document.body, outside the styled
EditorContainer scope, so the print rule has to live globally. */
@media print {
.block-drag-handle {
display: none !important;
}
}
`;