# 优化自动网格设置，少于3张图片时更便捷

**URL:** <https://meta.discourse.org/t/improve-convenience-in-setting-of-auto-grid-less-than-3-images/406731>\
**Category:** Feature\
**Tags:** lightbox\
**Created:** [2026年七月3日 07:40 UTC](https://meta.discourse.org/t/improve-convenience-in-setting-of-auto-grid-less-than-3-images/406731 "2026-07-03T07:40:22Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [2026年七月9日 17:57 UTC](https://meta.discourse.org/t/improve-convenience-in-setting-of-auto-grid-less-than-3-images/406731/6 "2026-07-09T17:57:38Z")

</div>

所以，是的，我认为现在我的想法是这样做：

- 当上传的图片数量 \> 1 时，用 `[grid]` 包裹
  - 当数量 \<= 3 时，默认使用 `[grid mode=list]`
  - 当数量 \> 3 且 \<= 10 时，默认使用 `[grid mode=grid]`
  - 当数量 \> 10 时，默认使用 `[grid mode=carousel]`

- 在富文本模式和预览中，让用户可以轻松地在 `list`、`grid` 和 `carousel` 模式之间切换

@chapoi 和 @renato 很想听听你们对此的看法。

---

_[View the full topic](https://meta.discourse.org/t/improve-convenience-in-setting-of-auto-grid-less-than-3-images/406731)._
