Fix edited reply quote collapse (#33487)
* Fix edited reply quote collapse * Add regression test for edited reply quotes
This commit is contained in:
+4
-2
@@ -255,14 +255,16 @@ export function TextualBodyView({
|
||||
[styles.annotatedInline]: kind === TextualBodyViewKind.EMOTE,
|
||||
});
|
||||
|
||||
// Reply quotes need to tweak this wrapper so long edited messages still clamp nicely.
|
||||
// Keep this hook stable so app CSS doesn't have to reach into CSS-module class names.
|
||||
renderedBody =
|
||||
kind === TextualBodyViewKind.EMOTE ? (
|
||||
<span dir="auto" className={annotatedClasses}>
|
||||
<span dir="auto" className={annotatedClasses} data-textual-body-annotation-wrapper="">
|
||||
{renderedBody}
|
||||
{markers}
|
||||
</span>
|
||||
) : (
|
||||
<div dir="auto" className={annotatedClasses}>
|
||||
<div dir="auto" className={annotatedClasses} data-textual-body-annotation-wrapper="">
|
||||
{renderedBody}
|
||||
{markers}
|
||||
</div>
|
||||
|
||||
+1
@@ -33,6 +33,7 @@ exports[`TextualBodyView > renders emote messages with annotations 1`] = `
|
||||
|
||||
<span
|
||||
class="TextualBody-module_annotated TextualBody-module_annotatedInline"
|
||||
data-textual-body-annotation-wrapper=""
|
||||
dir="auto"
|
||||
>
|
||||
<span>
|
||||
|
||||
Reference in New Issue
Block a user