Change: hide frontpage channel descriptions

* Discussion here: https://koodiklinikka.slack.com/archives/C6P893LFK/p1677587646981509
* tl;dr: Hiding the channel topics as those cannot really be controlled or made sure to be representative on the website
* Change the stylings to accommodate this
* Note that it seems to me at least that the channels are fetched and populated during build time, not in runtime, and thus the data is effectively stale (more in the linked thread), and this does nothing to fix that
This commit is contained in:
Antti Pitkänen
2023-02-28 15:22:29 +02:00
parent 8076d2de4b
commit 5bf41a8d0c
2 changed files with 3 additions and 11 deletions

View File

@@ -130,18 +130,10 @@ const IndexContent = (props: IndexProps) => (
#{channel.name}
</a>
</div>
<span className="channel-members">
{channel.num_members} jäsentä
</span>
</td>
<td>
<span>
<ReactMarkdown
className="channel-topic"
components={{ p: ChannelReferenceRenderer }}
>
{channel.topic}
</ReactMarkdown>
<span className="channel-members">
{channel.num_members} jäsentä
</span>
</td>
</tr>

View File

@@ -533,7 +533,6 @@ footer {
}
}
.channels {
width: 100%;
list-style: none;
padding: 0;
td {
@@ -583,6 +582,7 @@ footer {
}
.channel-members {
font-size: 12px;
margin-left: 1rem;
}
.channel-topic {
p {