入口区空间很大。该怎么解决?

大家好,我该如何修复它?请教教我

您好,

您是什么意思?它是按设计右对齐的。
您想实现什么目标?

1 个赞

您好 @Arkshine

当我点击主题时,主题录入窗口总是会打开。它左侧有一个非常宽的区域,我想缩小它。

你是说这个?

并且你希望只在点击数字时打开它。

image

我说对了吗?

是的,没错。
在您的截图中看起来也是这样。即使您点击空格,该窗口也会打开。
我只是希望在我点击数字时,该窗口也能打开。

可以试试这个代码片段吗?

<script type="text/discourse-plugin" version="0.8">
    api.modifyClass("component:latest-topic-list-item",  {
        pluginId: "showEntrance",
        
        showEntrance(event) {
            if (event.target.classList.contains('posts-map')) {
                return this.unhandledRowClick(event, this.topic);
            }

            return this._super(...arguments);
        }
    })
</script>

编辑:代码实际上可以简化。

3 个赞

它奏效了!非常感谢您。 :heart:

2 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.