# 需要第二双眼睛（侧边栏缩进）

**URL:** <https://meta.discourse.org/t/need-a-second-pair-of-eyes-sidebar-indentation/261298>\
**Category:** Development\
**Tags:** sidebar\
**Created:** [2023年四月11日 08:59 UTC](https://meta.discourse.org/t/need-a-second-pair-of-eyes-sidebar-indentation/261298 "2023-04-11T08:59:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sterretje](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@sterretje](https://meta.discourse.org/u/sterretje)\
**Post date:** [2023年四月11日 08:59 UTC](https://meta.discourse.org/t/need-a-second-pair-of-eyes-sidebar-indentation/261298/1 "2023-04-11T08:59:28Z")

</div>

你好

作为一个练习，我正在尝试缩进“社区”、“类别”、“标签”等下面的行。我为此创建了一个组件，并且它有效。

我想知道的是：  
1）这是正确的方法吗？  
2）这会对我在开发的论坛的任何其他地方产生影响吗？

**组件1；** 缩进，保留图标。

```plaintext
    .sidebar-section-link-wrapper {
      .sidebar-section-link-prefix {
        margin-left: 40px;
      }
    }

```

**组件2：** 缩进，移除图标

```plaintext
    .sidebar-section-link-wrapper {
      .sidebar-section-link-prefix {
        display: none;
      }
      .sidebar-section-link-content-text
      {
        margin-left: 40px;
      }
    }

```

一个附带问题：  
侧边栏中类别项目以及主页上类别/子类别项目前面的方形块的“官方”名称是什么？

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/0/d/e0dadd1073963af481f4888195ff28c0c96db942.png)

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2023年四月11日 09:04 UTC](https://meta.discourse.org/t/need-a-second-pair-of-eyes-sidebar-indentation/261298/2 "2023-04-11T09:04:48Z")

</div>

> [@sterretje](#):
>
> 在类别下方的项目前面的“官方”名称是什么？

在 `category_style` 设置（以及 CSS）中，这被称为“bullet”。
