# 在 \<kbd\> 标签内，无法在表情符号旁边插入空格

**URL:** <https://meta.discourse.org/t/cant-insert-space-next-to-an-emoji-inside-kbd-tags/248059>\
**Category:** UX\
**Created:** [2022 年12 月 6 日 22:47 UTC](https://meta.discourse.org/t/cant-insert-space-next-to-an-emoji-inside-kbd-tags/248059 "2022-12-06T22:47:01Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
发布日期： [2022 年12 月 12 日 18:54 UTC](https://meta.discourse.org/t/cant-insert-space-next-to-an-emoji-inside-kbd-tags/248059/8 "2022-12-12T18:54:08Z")

</div>

我刚刚合并了这个：

> <https://github.com/discourse/discourse/pull/19427>
>
> This ensures that there's always horizontal space between elements (like text an…d emoji) within a KBD tag. Flexbox ignores the whitespace that would be present otherwise. 
> 
> Before:
> !\[Screenshot 2022-12-12 at 1 34 04 PM\](https://user-images.githubusercontent.com/1681963/207126355-1ac9d0e5-c50e-465c-828f-b7ea85469c1b.png)
> 
> After:
> !\[Screenshot 2022-12-12 at 1 34 13 PM\](https://user-images.githubusercontent.com/1681963/207126357-34d3c7d8-5870-4a35-bef7-fe626238a3ac.png)
> 
> 
> 
> 
> Discussion here: https://meta.discourse.org/t/cant-insert-space-next-to-an-emoji-inside-kbd-tags/248059

---

_[View the full topic](https://meta.discourse.org/t/cant-insert-space-next-to-an-emoji-inside-kbd-tags/248059)._
