Allow for spaces in channel names
This commit is contained in:
parent
071a88dc47
commit
856de4e160
2 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ let toCSS = (message, currentStream) => {
|
||||||
let className = "",
|
let className = "",
|
||||||
emoji_code = "",
|
emoji_code = "",
|
||||||
rules = [],
|
rules = [],
|
||||||
parentClassName = currentStream,
|
parentClassName = (currentStream || "").replace(" ", "-"),
|
||||||
id = message.id,
|
id = message.id,
|
||||||
is_codeblock = message.content.includes("<code>") || message.content.startsWith("```"),
|
is_codeblock = message.content.includes("<code>") || message.content.startsWith("```"),
|
||||||
is_font = /<p><a href=".+?\.(ttf|otf|woff)/gm.test(message.content);
|
is_font = /<p><a href=".+?\.(ttf|otf|woff)/gm.test(message.content);
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ export default {
|
||||||
return this.show_ui ? "ui" : "print";
|
return this.show_ui ? "ui" : "print";
|
||||||
},
|
},
|
||||||
currentStream() {
|
currentStream() {
|
||||||
return this.$store.state.currentStream;
|
return this.$store.state.currentStream.replace(" ", "-");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -121,6 +121,7 @@ export default {
|
||||||
if (state !== undefined) this.show_ui = state;
|
if (state !== undefined) this.show_ui = state;
|
||||||
else this.show_ui = !this.show_ui;
|
else this.show_ui = !this.show_ui;
|
||||||
this.$forceUpdate();
|
this.$forceUpdate();
|
||||||
|
Splitpanes.updatePaneComponents();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue