Skip to content

feat(chat): add GIF scale setting in Site Layout -> Chat - #1261

Open
jaissonjpp wants to merge 1 commit into
SevenTV:masterfrom
jaissonjpp:feat/chat-gif-scale
Open

feat(chat): add GIF scale setting in Site Layout -> Chat#1261
jaissonjpp wants to merge 1 commit into
SevenTV:masterfrom
jaissonjpp:feat/chat-gif-scale

Conversation

@jaissonjpp

Copy link
Copy Markdown

Proposed changes

This PR introduces a new GIF Scale setting under Site Layout -> Chat settings, allowing users to customize the display size/scale of GIFs rendered in chat messages.

Key Changes:

  • HiddenElementsModule.vue: Declared the chat.gif_scale SLIDER setting under ["Site Layout", "Chat"] (range 0.1x to 1.0x, step 0.05, default 1.0x). Sets --seventv-gif-scale CSS variable on change.
  • MessageTokenGif.vue: Updated the GIF image renderer to reactively bind chat.gif_scale and --seventv-gif-scale for real-time scaling of GIFs in chat messages.
  • locale/en_US.yaml: Added localization labels for chat_gif_scale.
  • CHANGELOG-nightly.md: Added a changelog entry for this new setting under the latest nightly release section.

Types of changes

What types of changes does your code introduce to 7TV?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices apply)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

  • I have read the CONTRIBUTING doc
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant