mirror of
https://github.com/outline/outline.git
synced 2026-12-03 10:00:13 +03:00
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:
1 parent
0a2d129c08
commit
acfff03e32
2 files changed
+12
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in new issue
Block a user