请求:在主题列表中移除头像并改为显示用户名的选项

我希望将信任等级为 0-1-2 的用户名显示为灰色,将信任等级为 3-4 的用户名显示为彩色。

我大多可以用 CSS 实现,但会产生很多错误,比如当我回复一个帖子时,原帖作者的用户名会消失。

如果有一个选项可以禁用主题列表中的头像,以实现更老式论坛的外观,那就太棒了。

我喜欢其他区域的头像,只是不喜欢主主题列表中的头像。

你好,试试这个:

// 桌面端
.topic-list td.topic-list-data.posters {
  display: none !important;
}

// 移动端
.pull-left {
  display: none !important;
}

.topic-list .right {
  margin-left: 0 !important;
}

这会移除主题列表中的头像(在桌面端和移动端)。

1 个赞

这会移除头像,但我希望保留用户名。我将看看这是否对人工智能有帮助。

这是我用 A.I. 想出的方法,但是当有人回复帖子时,用户名会消失。我也无法调整发帖人信任等级组的颜色。

.topic-list .posters img.avatar { display: none; }
.topic-list .posters { text-align: center !important; }
.topic-list .posters a.latest.single {
  display: block;
  padding: 4px 0;
}


.topic-list .posters a.latest.single::after {
  content: attr(data-user-card);
  display: block;
  font-size: 17px;
  font-weight: normal;
  text-align: center;
}
.topic-list-header th.posters {
  text-align: center !important;
  padding: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.topic-list-header th.posters {
  padding-top: 16px !important; /* 根据需要调整值 */
}


.topic-list-header th.posters::before {
  content: "Poster";
  font-size: 18px;
  font-weight: normal;
  color: #a6a6a6;
}


.topic-list .posters {
  display: flex;
  justify-content: center;
}

.topic-list th.posters,
.topic-list td.posters {
  width: 100px !important; /* 根据需要调整 80-120px */
  min-width: 100px !important;
}

.topic-list .posters a.latest.single::after {
  margin-top: 10px; /* 调整值以获得所需的垂直位置 */
}

.topic-list .posters a.latest.single::after {
  text-decoration: underline transparent;
  text-underline-offset: 1px;
  transition: text-decoration-color 0.2s;
}

.topic-list .posters a.latest.single:hover::after {
  text-decoration-color: #8e0086; /* 或 #800080 */
}

a.latest.single {
    padding-right: 5px !important;
}


.topic-list-data.posters {
  padding: 13.5px 45px !important;  /* 顶部/底部 8px,左/右 12px – 根据需要调整 */
}

.posters.topic-list-data,
.posters.topic-list-data a, {
  font-size: 17px !important;
}

.posters.topic-list-data a.latest.single {
  display: flex;
  align-items: center;
  justify-content: center;
}

.posters.topic-list-data a.latest.single::after {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.topic-list .posters a.latest.single::after {
  content: attr(data-user-card) !important;
  display: block !important;
}

//可见性
.topic-list .posters a {
  display: none !important;
}

.topic-list .posters a.latest {
  display: inline-block !important;
}

.topic-list .posters a.latest::after {
  content: attr(data-user-card) !important;
  display: block !important;
  font-size: 17px;
  margin-top: 4px;
}