diff --git a/css/app.css b/css/app.css index 9ea9a15..5cb90f1 100644 --- a/css/app.css +++ b/css/app.css @@ -290,6 +290,33 @@ body { + + + + +#chat.horizontal { + display: flex; + align-items: center; + width: max-content; + right: 0; + gap: 15px; +} + +#chat.horizontal .message { + margin: 0; +} + +#chat.horizontal .message.twitch.announcement > div { + display: inline-flex; +} + +#chat.horizontal .message.twitch.rewards-redemption > div { + display: inline-flex; +} + + + + #statistics { position: fixed; z-index: 11; @@ -300,7 +327,6 @@ body { display: flex; gap: 15px; justify-content: flex-end; - background: rgba(18, 18, 18, 0.9); backdrop-filter: blur(5px); font-weight: bold; -webkit-mask-image: linear-gradient(to top, transparent, black 40%); diff --git a/index.html b/index.html index 08a2954..4f78382 100644 --- a/index.html +++ b/index.html @@ -28,6 +28,7 @@ +
diff --git a/js/app.js b/js/app.js index be35ded..14cc5c7 100644 --- a/js/app.js +++ b/js/app.js @@ -7,6 +7,7 @@ const streamerBotServerPort = getURLParam("streamerBotServerPort", "8080 const chatThreshhold = 50; const chatContainer = document.querySelector('#chat'); const currentLang = lang[getURLParam("language", 'ptbr')]; +const chatHorizontal = getURLParam("chatHorizontal", false); const showPlatform = getURLParam("showPlatform", false); const showAvatar = getURLParam("showAvatar", false); const showTimestamps = getURLParam("showTimestamps", false); @@ -27,6 +28,7 @@ const ignoreUserList = ignoreChatters.split(',').map(item => item.trim().toLower /* ----------------------- */ if (showPlatformStatistics == false) { document.querySelector('#statistics').style.display = 'none'; } +if (chatHorizontal == true) { chatContainer.classList.add('horizontal'); } /* ----------------------- */ /* STREAMER.BOT CONNECTION */ @@ -67,7 +69,7 @@ async function addMessageToChat(userID, messageID, platform, data) { const html = DOMPurify.sanitize(`