# 保存草稿模态框的位置

**URL:** <https://meta.discourse.org/t/positioning-of-the-save-draft-modal/300636>\
**Category:** UX\
**Tags:** composer, mobile\
**Created:** [2024年三月23日 08:32 UTC](https://meta.discourse.org/t/positioning-of-the-save-draft-modal/300636 "2024-03-23T08:32:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2024年三月23日 08:32 UTC](https://meta.discourse.org/t/positioning-of-the-save-draft-modal/300636/1 "2024-03-23T08:32:11Z")

</div>

保存草稿模态框现在位于屏幕底部，而不是中间。这是一个故意的更改吗？

 ![_20240323_093147](https://global.discourse-cdn.com/meta/original/4X/4/5/b/45b8fa63b916695591b8f3eb042b94ae5ed980cf.jpeg)

---

<div class="post-metadata">

**Author:** ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)\
**Post date:** [2024年三月23日 09:41 UTC](https://meta.discourse.org/t/positioning-of-the-save-draft-modal/300636/2 "2024-03-23T09:41:52Z")

</div>

> <https://github.com/discourse/discourse/commit/f7b73f3d7025de38072dce9f0173e931db885eb0>
>
> This commit mainly improves three things:
> \- slide up/down animation of the moda…ls on mobile, also allowing swipe down to close the modal
> \- body scroll locked modals, it means that only the body of the modal can scroll
> \- a new \`\<:headerPrimaryAction\>\` block for \`d-modal\` which when present will move the cancel button to the left of the modal title, and this primary action to the right of the title

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2024年三月27日 22:20 UTC](https://meta.discourse.org/t/positioning-of-the-save-draft-modal/300636/3 "2024-03-27T22:20:15Z")

</div>

我仍然希望所有这些模态都出现在中心。有些仍然显示在那里，而有些则不。例如，当你关闭一个草稿时，你必须看底部，但当你再次打开它时，这些模态就会居中。

 ![_20240327_223418](https://global.discourse-cdn.com/meta/original/4X/f/d/c/fdca254c0ac28efbb0cb6539bb722a5c900e1356.jpeg) ![_20240327_223405](https://global.discourse-cdn.com/meta/original/4X/f/1/2/f1244d6a1ffc27078d07e1d8972b1050e0d13f00.jpeg)  
此外，“丢弃”按钮与“垃圾桶”按钮的位置完全相同，因此你更有可能意外删除你的草稿。  
 ![_20240327_231500](https://global.discourse-cdn.com/meta/original/4X/a/d/e/ade212ca3640f4e5e0cd7503a7665161f83153ca.jpeg)

我认为我仍然希望桌面版和移动版能以相同的方式工作。使用平板电脑时，感觉就像介于两者之间，因为你以桌面模式使用 Discourse，但它是一个触摸设备。这就是为什么我希望这些模态在平板电脑和移动设备上出现在相同的位置。
