From 3ee271a3450e8d44477f30ad52fd4303bd4804a3 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 8 Apr 2025 21:08:01 -0500 Subject: [PATCH] chanel topic click --- src/webpage/channel.ts | 5 +++++ src/webpage/style.css | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index b10a093..4a97edc 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -942,6 +942,11 @@ class Channel extends SnowFlake { channelTopic.innerHTML = ""; channelTopic.append(new MarkDown(this.topic, this).makeHTML()); channelTopic.removeAttribute("hidden"); + channelTopic.onclick = () => { + const d = new Dialog(this.name); + d.options.addHTMLArea(new MarkDown(this.topic, this).makeHTML()); + d.show(); + }; } else channelTopic.setAttribute("hidden", ""); if (this.guild !== this.localuser.lookingguild) { this.guild.loadGuild(); diff --git a/src/webpage/style.css b/src/webpage/style.css index a7ec92a..955809a 100644 --- a/src/webpage/style.css +++ b/src/webpage/style.css @@ -1072,6 +1072,8 @@ span.instanceStatus { margin: auto 0 0 8px; font-size: 0.9em; color: var(--primary-text-soft); + cursor: pointer; + button { margin-right: 0.05in; } @@ -1920,9 +1922,7 @@ img.bigembedimg { box-sizing: border-box; user-select: none; background: var(--secondary-bg); - - - + input { width: 1in; position: absolute;