Better handling of formatting in pasted text

This commit is contained in:
Scott Nonnenberg
2023-05-23 15:00:05 -07:00
committed by GitHub
parent d012779e87
commit a31cf5645e
12 changed files with 105 additions and 43 deletions

View File

@@ -49,22 +49,6 @@
}
}
&--spoiler--copy-target {
// We don't want this thing to affect the layout of the message
position: absolute;
top: 0;
// We can use left here; this is not visible to the user
/* stylelint-disable liberty/use-logical-spec */
left: 0;
height: 1px;
width: 1px;
// Hide text
color: transparent;
overflow: hidden;
}
// Note: This is referenced in formatting/matchers.ts, to detect these styles on paste
&--spoiler--noninteractive {
cursor: inherit;