From 5bf41a8d0cab33149cfbbf29c359f6c2a9f17670 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20Pitk=C3=A4nen?= Date: Tue, 28 Feb 2023 15:22:29 +0200 Subject: [PATCH] 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 --- pages/index.tsx | 12 ++---------- styles/style.scss | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 697173e..23a39a4 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -130,18 +130,10 @@ const IndexContent = (props: IndexProps) => ( #{channel.name} - - {channel.num_members} jäsentä - - - - {channel.topic} - + + {channel.num_members} jäsentä diff --git a/styles/style.scss b/styles/style.scss index dc1e1ae..9f14683 100644 --- a/styles/style.scss +++ b/styles/style.scss @@ -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 {