# グループメンバーページで投稿済みと確認済みの列を非表示にするCSS、その2

**URL:** <https://meta.discourse.org/t/css-to-hide-the-posted-and-seen-columns-in-the-group-member-page-take-2/253888>\
**Category:** Development\
**Tags:** css\
**Created:** [2023 年 2 月 2 日午後 9:59 UTC](https://meta.discourse.org/t/css-to-hide-the-posted-and-seen-columns-in-the-group-member-page-take-2/253888 "2023-02-02T21:59:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![JoelZaslofsky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joelzaslofsky/32/158556_2.png) [@JoelZaslofsky](https://meta.discourse.org/u/JoelZaslofsky)\
**Post date:** [2023 年 2 月 2 日午後 9:59 UTC](https://meta.discourse.org/t/css-to-hide-the-posted-and-seen-columns-in-the-group-member-page-take-2/253888/1 "2023-02-02T21:59:04Z")

</div>

2021年3月のフォーラムスレッドのフォローアップです。

> [@CSS to hide the Posted and Seen columns in the group member page](https://meta.discourse.org/t/css-to-hide-the-posted-and-seen-columns-in-the-group-member-page/182206/1):
>
> As of Discourse 2.7.0.beta4, some custom CSS we previously used to hide the Posted and Seen columns on the group detail page no longer works. Instead, we just have the “Seen” column. I want the only column between Posted, Seen, and Added to be the Added column. The CSS below previously worked but no longer does. /\* remove "Posted" and "Seen" columns from group-detail member lists \*/ table.group-members th:nth-child(n+4):nth-child(-n+5), table.group-members td:nth-child(n+4):nth-child…

デスクトップ表示でグループ詳細メンバーリストから「投稿済み」と「最終確認済み」の列を非表示にするCSSは、グループが参加リクエスト制に設定されている場合に「承認」と「拒否」ボタンを非表示にするようになりました。

修正または置き換える必要があるCSSは次のとおりです。

```plaintext
/* グループ詳細メンバーリストから「投稿済み」と「最終確認済み」の列を削除 */
.group-members {
  th {
    &:nth-child(5),
    &:nth-child(6) {
      display: none;
    }
  }
  td {
    &:nth-child(4),
    &:nth-child(5) {
      display: none;
    }
  }
}

```

nth-child CSSコードの使用と、「承認」および「拒否」ボタンが消えることとのトレードオフを示すビデオは次のとおりです。

[https://www.loom.com/share/d066ea1a765a4ce4b3b13a952f98fb1b](https://www.loom.com/share/d066ea1a765a4ce4b3b13a952f98fb1b)

https://[yourdiscourseforumurl].com/g/[YourGroupName] で、「投稿済み」と「最終確認済み」の列のみを非表示にし、他のものは何も非表示にしない、より的を絞ったCSSを提供してくださる親切な方に、事前に感謝いたします。

---

_[View the full topic](https://meta.discourse.org/t/css-to-hide-the-posted-and-seen-columns-in-the-group-member-page-take-2/253888)._
