Allow for spaces in channel names

This commit is contained in:
Heerko 2021-07-18 21:45:10 +02:00
parent 071a88dc47
commit 856de4e160
2 changed files with 3 additions and 2 deletions

View file

@ -16,7 +16,7 @@ let toCSS = (message, currentStream) => {
let className = "",
emoji_code = "",
rules = [],
parentClassName = currentStream,
parentClassName = (currentStream || "").replace(" ", "-"),
id = message.id,
is_codeblock = message.content.includes("<code>") || message.content.startsWith("```"),
is_font = /<p><a href=".+?\.(ttf|otf|woff)/gm.test(message.content);

View file

@ -90,7 +90,7 @@ export default {
return this.show_ui ? "ui" : "print";
},
currentStream() {
return this.$store.state.currentStream;
return this.$store.state.currentStream.replace(" ", "-");
},
},
methods: {
@ -121,6 +121,7 @@ export default {
if (state !== undefined) this.show_ui = state;
else this.show_ui = !this.show_ui;
this.$forceUpdate();
Splitpanes.updatePaneComponents();
},
},
};