From 0f0a33655b2f586c52f53c3e43171c7ab6a1fed7 Mon Sep 17 00:00:00 2001 From: Sora <8521327+SoraKasvgano@users.noreply.github.com> Date: Tue, 20 Jan 2026 13:26:18 +0800 Subject: [PATCH] Add fixed bottom player embed option Introduced a new 'Fixed Bottom Player' embed code and corresponding i18n strings, providing an always-visible player fixed at the bottom of the page similar to MetingJS fixed mode. Also improved CSS transitions and refactored toggle logic for the floating player embed. --- ui/src/i18n/en.json | 2 ++ ui/src/share/EmbedCodeField.jsx | 53 ++++++++++++++++++++++++++------- 2 files changed, 44 insertions(+), 11 deletions(-) diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json index ef7d87562..f986a2aed 100644 --- a/ui/src/i18n/en.json +++ b/ui/src/i18n/en.json @@ -572,6 +572,8 @@ "embedTip": "Tip: Copy this code and paste it into your webpage HTML to use", "floatingPlayerLeft": "Bottom Left Floating Player", "floatingPlayerLeftDesc": "Collapsible floating player in bottom left corner, users can click to expand/collapse", + "fixedBottomPlayer": "Fixed Bottom Player", + "fixedBottomPlayerDesc": "Fixed at bottom of page, always visible (similar to MetingJS fixed mode)", "basicIframe": "Basic iframe", "basicIframeDesc": "Simple iframe embed, suitable for fixed position display", "responsiveIframe": "Responsive iframe", diff --git a/ui/src/share/EmbedCodeField.jsx b/ui/src/share/EmbedCodeField.jsx index 4e349ebbb..e0e1a000c 100644 --- a/ui/src/share/EmbedCodeField.jsx +++ b/ui/src/share/EmbedCodeField.jsx @@ -79,7 +79,7 @@ export const EmbedCodeField = ({ url, title = 'Music Player' }) => { ` - // 左下角悬浮播放器嵌入代码 + // 左下角悬浮播放器嵌入代码 - 参考 MetingJS 风格 const floatingPlayerEmbed = `