1
0
mirror of https://github.com/chylex/Transparent-Twitch-Chat.git synced 2024-10-31 20:42:46 +01:00

Compare commits

...

3 Commits

Author SHA1 Message Date
8883c3cc03
Increase maximum chat width to 800px
Closes #31
2023-03-06 02:20:08 +01:00
75acc5c38a
Fix slider width changing while moving the sliders 2023-03-06 02:04:30 +01:00
146164c995
Fix hiding VOD timestamps 2023-03-06 01:54:06 +01:00

View File

@ -162,14 +162,9 @@ ${rcol} .video-chat__sync-button {
} }
${settings.hideTimestamps ? `@#css{{ ${settings.hideTimestamps ? `@#css{{
${rcol} .vod-message--timestamp .tw-tooltip-wrapper, ${rcol} .vod-message__header div[class*="ScAttachedTooltipWrapper-"] {
${rcol} .vod-message div[data-test-selector="message-timestamp"] {
display: none !important; display: none !important;
} }
${rcol} .vod-message--timestamp {
padding-left: 0.5rem;
}
@#css}}` : ``} @#css}}` : ``}
${settings.hideHeader ? `@#css{{ ${settings.hideHeader ? `@#css{{
@ -585,9 +580,9 @@ function generateSettingsCSS(){
#chylex-ttc-settings-modal output { #chylex-ttc-settings-modal output {
color: @#hex(fffc); color: @#hex(fffc);
display: inline-block; display: inline-block;
flex: 1 1 42px; flex: 0 0 auto;
padding-left: 6px; padding-left: 5px;
text-align: left; text-align: right;
} }
#chylex-ttc-settings-modal .tw-toggle__button { #chylex-ttc-settings-modal .tw-toggle__button {
@ -809,7 +804,7 @@ function createSettingsModal(){
return generateOptionBase(title, ` return generateOptionBase(title, `
<input id="ttc-opt-${option}" type="range" min="${cfg.min}" max="${cfg.max}" step="${cfg.step}" value="${settings[option]}"> <input id="ttc-opt-${option}" type="range" min="${cfg.min}" max="${cfg.max}" step="${cfg.step}" value="${settings[option]}">
<output id="ttc-optval-${option}" for="ttc-opt-${option}">${settings[option]}${cfg.text}</option> <output id="ttc-optval-${option}" for="ttc-opt-${option}" style="min-width:${cfg.width}px;">${settings[option]}${cfg.text}</option>
`, { itemClasses: "ttc-setting-small-margin" }); `, { itemClasses: "ttc-setting-small-margin" });
}; };
@ -830,7 +825,7 @@ function createSettingsModal(){
<div class="ttc-flex-container"> <div class="ttc-flex-container">
<div style="flex: 0 0 25%"> <div style="flex: 0 0 25%">
<p>General</p> <p>General</p>
${generateSlider("Chat Width", "chatWidth", { min: 250, max: 600, step: 25, wait: 500, text: "px" })} ${generateSlider("Chat Width", "chatWidth", { min: 250, max: 800, step: 25, wait: 500, width: 48, text: "px" })}
${generateTxtbox("Chat Filters", "chatFilters", { wait: 500, placeholder: "Example: kappa, *abc*" })} ${generateTxtbox("Chat Filters", "chatFilters", { wait: 500, placeholder: "Example: kappa, *abc*" })}
${generateSelect("Player Position", "playerPosition", { ${generateSelect("Player Position", "playerPosition", {
"#opposite-chat": "Opposite of Chat", "#opposite-chat": "Opposite of Chat",
@ -853,7 +848,7 @@ function createSettingsModal(){
${generateToggle("Transparent Chat", "transparentChat")} ${generateToggle("Transparent Chat", "transparentChat")}
${generateToggle("Smooth Text Shadow", "smoothTextShadow")} ${generateToggle("Smooth Text Shadow", "smoothTextShadow")}
${generateToggle("Chat on Left Side", "chatLeftSide")} ${generateToggle("Chat on Left Side", "chatLeftSide")}
${generateSlider("Background Opacity", "backgroundOpacity", { min: 0, max: 100, step: 5, wait: 100, text: "%" })} ${generateSlider("Background Opacity", "backgroundOpacity", { min: 0, max: 100, step: 5, wait: 100, width: 42, text: "%" })}
</div> </div>
<div style="flex: 0 0 16%"> <div style="flex: 0 0 16%">
@ -877,7 +872,7 @@ function createSettingsModal(){
${generateToggle("Hide Sub Gift Badge", "hideBadgeSubGift")} ${generateToggle("Hide Sub Gift Badge", "hideBadgeSubGift")}
${generateToggle("Hide Bit Cheer Badge", "hideBadgeBitCheer")} ${generateToggle("Hide Bit Cheer Badge", "hideBadgeBitCheer")}
${generateToggle("Hide Gift/Bit Leader Badge", "hideBadgeLeader")} ${generateToggle("Hide Gift/Bit Leader Badge", "hideBadgeLeader")}
${generateSlider("Badge Opacity", "badgeOpacity", { min: 0, max: 100, step: 5, wait: 100, text: "%" })} ${generateSlider("Badge Opacity", "badgeOpacity", { min: 0, max: 100, step: 5, wait: 100, width: 42, text: "%" })}
</div> </div>
</div> </div>
`; `;