Skip to content

Commit

Permalink
fix: font size not applying correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Enubia committed Aug 26, 2024
1 parent b3170d2 commit a3e14e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/settings/twitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ onMounted(async () => {
fadeTimeout.value = twitch.fadeTimeout;
theme.value = String(twitch.theme);
preventClipping.value = twitch.preventClipping;
fontSizeExact.value = twitch.fontSizeExact;
jChatRerenderKey.value++;
kapChatRerenderKey.value++;
Expand Down
6 changes: 6 additions & 0 deletions src/pages/webview/twitch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,16 @@ function constructInjectableJS() {
}
function constructInjectableCSS() {
// need to apply the font size to the chat box and chat lines
// sometimes it doesn't apply when a theme is selected
const css = `
#chat_box {
font-size: ${twitch.value.fontSizeExact}px !important;
}
#chat_box .chat_line {
font-size: ${twitch.value.fontSizeExact}px !important;
}
`;
return [css, twitch.value.css].join('\n');
}
Expand Down

0 comments on commit a3e14e0

Please sign in to comment.