From 573c4a2a6b07bcfd9c477f71a1f4f77d7d4e5d8a Mon Sep 17 00:00:00 2001 From: Mathium05 Date: Wed, 19 Aug 2026 22:02:14 -0500 Subject: [PATCH] Add channel hover text Fixes https://codeberg.org/MelodyChat/Fermi/issues/437 --- src/webpage/channel.ts | 3 +++ translations/en.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index 0da4689..3b51887 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -37,6 +37,7 @@ import {Command} from "./interactions/commands.js"; import {Tag} from "./tag.js"; import {CDNParams} from "./utils/cdnParams.js"; import {TypeBox} from "./typeBox.js"; +import {Hover} from "./hover.js"; class Channel extends SnowFlake { editing!: Message | null; @@ -1076,6 +1077,8 @@ class Channel extends SnowFlake { const addchannel = document.createElement("span"); addchannel.classList.add("addchannel", "svgicon", "svg-plus"); caps.appendChild(addchannel); + const h = new Hover(I18n.channel.addChannel(), {side: "right", weak: true}); + h.addEvent(addchannel); addchannel.onclick = (_) => { this.guild.createchannels(this.createChannel.bind(this)); }; diff --git a/translations/en.json b/translations/en.json index 2a940d5..b564fc4 100644 --- a/translations/en.json +++ b/translations/en.json @@ -169,7 +169,8 @@ "voice": "Voice", "deleteThread":"Delete thread", "hideThreads":"Hide after inactivity", - "forum":"Forum" + "forum":"Forum", + "addChannel":"Add channel" }, "threads":{ "leave":"Leave thread",