# 我们正在更新移动帖子控件布局，使其与桌面版更加一致

**URL:** <https://meta.discourse.org/t/were-updating-the-mobile-post-controls-layout-to-be-more-consistent-with-desktop/187539>\
**Category:** Announcements\
**Tags:** new-feature\
**Created:** [2021年四月20日 22:08 UTC](https://meta.discourse.org/t/were-updating-the-mobile-post-controls-layout-to-be-more-consistent-with-desktop/187539 "2021-04-20T22:08:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2021年四月20日 22:08 UTC](https://meta.discourse.org/t/were-updating-the-mobile-post-controls-layout-to-be-more-consistent-with-desktop/187539/1 "2021-04-20T22:08:36Z")

</div>

今天，我合并了一项更新，该更新更改了移动设备上每篇帖子下方按钮的默认布局。这一改动使我们的移动端按钮布局与桌面端更加一致，尤其是在显示回复数量时（即启用了“启用过滤回复视图”站点设置时）。

> <https://github.com/discourse/discourse/pull/12760>
>
> This update would make the buttons positions more consistent with desktop and ea…sier to reach with one hand (if you're right-hand dominant, anyway)
> 
> Before:
> !\[Screen Shot 2021-04-19 at 11 22 42 PM\](https://user-images.githubusercontent.com/1681963/115332634-31d96900-a166-11eb-8a17-4b2f796f4e04.png)
> 
> After: 
> !\[Screen Shot 2021-04-19 at 11 22 48 PM\](https://user-images.githubusercontent.com/1681963/115332651-3b62d100-a166-11eb-935c-342dfe7cb3bb.png)

更新前：

 ![Screen Shot 2021-04-20 at 5.50.41 PM](https://global.discourse-cdn.com/meta/original/3X/d/a/da40905175d586c083650f29d4e072447f0b4aa5.png)

更新后：

 ![Screen Shot 2021-04-20 at 5.47.31 PM](https://global.discourse-cdn.com/meta/original/3X/a/6/a65464ab7fcf9e36e438598b8e43ab2ee389c072.png)

如果您喜欢旧版布局，可以在您的主题中添加一些 CSS 以恢复它：

```css
.mobile-view {
  .topic-post {
    nav.post-controls .actions {
      justify-content: flex-start;
    }
    
    &:not(.wiki) {
      button.reply {
        margin-left: auto;
      }
    }
    
    &.wiki {
      button.create {
        margin-left: auto;
      }
    }
  }
}

```

如果您遇到任何可能与此次更改相关的错误，请随时告诉我们！

---

_[View the full topic](https://meta.discourse.org/t/were-updating-the-mobile-post-controls-layout-to-be-more-consistent-with-desktop/187539)._
