From 3aab31e40454163f4f2f2d01b7fdc34c9ba52bab Mon Sep 17 00:00:00 2001 From: Phil Morrell Date: Sat, 11 Jun 2022 19:05:45 +0100 Subject: [PATCH] display topic to be a bit more descriptive * couldn't work out how to put it directly under the room name * drop theme source since there's nothing left of it --- main.css | 16 +++++++++++++++- spaces.html | 4 ++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/main.css b/main.css index f04f74f..ec3de74 100644 --- a/main.css +++ b/main.css @@ -1,4 +1,3 @@ -/* Theming taken from https://github.com/vector-im/riot-web/blob/cf5cf02529f95a094d88051c12fdb87a03d87335/src/skins/vector/css/themes/_base.scss */ .room { margin-left: 2em; } @@ -25,3 +24,18 @@ img.roomAvatar { height: 36px; margin: 0.5em; } + +.topic { + font-size: smaller; + color: DarkSlateGrey; + margin-left: 2em; + + width: 40em; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.topic:hover { + overflow: visible; +} diff --git a/spaces.html b/spaces.html index b33b441..ae47418 100644 --- a/spaces.html +++ b/spaces.html @@ -43,6 +43,10 @@ % endif + + % if 'topic' in room: +

${room['topic']}

+ % endif % endif % if room['name'] != "TOP" and room['name'] != "Libre Gaming" and 'children' in room: