# 请求主题的 CSS 标识符，主题组件（插件也是？）

**URL:** https://meta.discourse.org/t/requesting-css-identifiers-for-themes-theme-components-plugins-too/392690
**Category:** Feature
**Created:** [2026 年1 月 5 日 10:26 UTC](https://meta.discourse.org/t/requesting-css-identifiers-for-themes-theme-components-plugins-too/392690 "2026-01-05T10:26:42Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2026 年1 月 12 日 10:05 UTC](https://meta.discourse.org/t/requesting-css-identifiers-for-themes-theme-components-plugins-too/392690/7 "2026-01-12T10:05:59Z")

</div>

再试了一次

> <https://github.com/discourse/discourse/pull/37058>
>
> The schema setting editor used for theme/component object settings had a cramped… layout that didn't make good use of available space.
> 
> This commit improves the layout by:
> 
> \- Increasing the navigation tree minimum width from 10em to 14em
> \- Changing fields from horizontal layout (label beside input) to vertical layout (label above input), matching FormKit patterns
> \- Reducing the gap between navigation and fields from 5vw to 2rem
> \- Allowing field inputs to stretch to full width
> 
> This is the "fix it in core" approach rather than adding theme-specific CSS identifiers, as discussed in the meta topic.
> 
> Ref: https://meta.discourse.org/t/392690
> Follow-up to: https://github.com/discourse/discourse/pull/37043
> 
> \*\*BEFORE\*\*
> 
> \<img width="1961" height="1453" alt="2026-01-12 @ 09 58 38" src="https://github.com/user-attachments/assets/fc78d8fb-6097-440c-8131-0dc98cda0e6d" /\>
> 
> \*\*AFTER\*\*
> 
> \<img width="1961" height="1453" alt="2026-01-12 @ 09 58 32" src="https://github.com/user-attachments/assets/9f98483c-b2a3-49fc-8d70-5de6fe2b37a3" /\>

| 之前 | 之后 |
| --- | --- |
| ![before](https://global.discourse-cdn.com/meta/original/4X/d/2/4/d24f8836ef2b5190caa91ee327f34818c6f7b8b3.png) | ![after](https://global.discourse-cdn.com/meta/original/4X/2/9/2/2925988b71d5e0bf2a2fa4edc5578b3f622e2599.png) |

这是我能做的最简单的了。不确定我们是否想花时间重新设计这个用户界面（UI）——“内部侧边栏”感觉有点“不对劲”，但这可能超出了我们目前可以优先处理的工作范围 🤔

---

_[View the full topic](https://meta.discourse.org/t/requesting-css-identifiers-for-themes-theme-components-plugins-too/392690)._
