Fix editor bugs (#1281)

* focus editor on reply click

* fix emoji and sticker img object-fit

* fix cursor not moving with autocomplete

* stop sanitizing sending plain text body

* improve autocomplete query parsing

* add escape to turn off active editor toolbar item
This commit is contained in:
Ajay Bura
2023-06-14 03:47:18 +10:00
committed by GitHub
parent 6d199244ef
commit 2883b4c35b
9 changed files with 69 additions and 22 deletions

View File

@@ -122,6 +122,7 @@ export const CustomEmojiImg = style([
{
width: toRem(32),
height: toRem(32),
objectFit: 'contain',
},
]);
@@ -130,5 +131,6 @@ export const StickerImg = style([
{
width: toRem(96),
height: toRem(96),
objectFit: 'contain',
},
]);

View File

@@ -373,6 +373,7 @@ function ImagePackSidebarStack({
style={{
width: toRem(24),
height: toRem(24),
objectFit: 'contain',
}}
src={mx.mxcUrlToHttp(pack.getPackAvatarUrl(usage) ?? '') || pack.avatarUrl}
alt={label || 'Unknown Pack'}