chanel topic click

This commit is contained in:
MathMan05 2025-04-08 21:08:01 -05:00
parent 4a9a17814e
commit 3ee271a345
2 changed files with 8 additions and 3 deletions

View file

@ -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();

View file

@ -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;