chanel topic click
This commit is contained in:
parent
4a9a17814e
commit
3ee271a345
2 changed files with 8 additions and 3 deletions
|
@ -942,6 +942,11 @@ class Channel extends SnowFlake {
|
||||||
channelTopic.innerHTML = "";
|
channelTopic.innerHTML = "";
|
||||||
channelTopic.append(new MarkDown(this.topic, this).makeHTML());
|
channelTopic.append(new MarkDown(this.topic, this).makeHTML());
|
||||||
channelTopic.removeAttribute("hidden");
|
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", "");
|
} else channelTopic.setAttribute("hidden", "");
|
||||||
if (this.guild !== this.localuser.lookingguild) {
|
if (this.guild !== this.localuser.lookingguild) {
|
||||||
this.guild.loadGuild();
|
this.guild.loadGuild();
|
||||||
|
|
|
@ -1072,6 +1072,8 @@ span.instanceStatus {
|
||||||
margin: auto 0 0 8px;
|
margin: auto 0 0 8px;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
color: var(--primary-text-soft);
|
color: var(--primary-text-soft);
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
margin-right: 0.05in;
|
margin-right: 0.05in;
|
||||||
}
|
}
|
||||||
|
@ -1921,8 +1923,6 @@ img.bigembedimg {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
background: var(--secondary-bg);
|
background: var(--secondary-bg);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
input {
|
input {
|
||||||
width: 1in;
|
width: 1in;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue