From bb5419595512be8dab44c5738f801cc8e20c183a Mon Sep 17 00:00:00 2001 From: Sora <8521327+SoraKasvgano@users.noreply.github.com> Date: Mon, 19 Jan 2026 13:48:01 +0800 Subject: [PATCH] Refactor share URLs section into accordion in ShareEdit Replaces the static display of share URLs and embed code with an expandable Accordion component for improved UI organization and user experience in the ShareEdit form. --- ui/src/share/ShareEdit.jsx | 60 +++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 24 deletions(-) diff --git a/ui/src/share/ShareEdit.jsx b/ui/src/share/ShareEdit.jsx index 9412c7d36..3ab4e92cf 100644 --- a/ui/src/share/ShareEdit.jsx +++ b/ui/src/share/ShareEdit.jsx @@ -8,10 +8,11 @@ import { useTranslate, } from 'react-admin' import { sharePlayerUrl, shareAPlayerUrl } from '../utils' -import { Link, Box, Typography, Divider } from '@material-ui/core' +import { Link, Box, Typography, Divider, Accordion, AccordionSummary, AccordionDetails } from '@material-ui/core' import { DateField } from '../common' import config from '../config' import { EmbedCodeField } from './EmbedCodeField' +import ExpandMoreIcon from '@material-ui/icons/ExpandMore' export const ShareEdit = (props) => { const { id, basePath, hasCreate, ...rest } = props @@ -21,29 +22,6 @@ export const ShareEdit = (props) => { return ( - - - {translate('message.shareUrl')} - - - {url} - - - - - {translate('message.aplayerEmbedUrl')} - - - {aplayerUrl} - - - - - - - - - {config.enableDownloads && } @@ -54,6 +32,40 @@ export const ShareEdit = (props) => { + + + } + aria-controls="share-urls-content" + id="share-urls-header" + > + + {translate('message.shareUrl')} & {translate('message.aplayerEmbedUrl')} + + + + + + {translate('message.shareUrl')} + + + {url} + + + + + {translate('message.aplayerEmbedUrl')} + + + {aplayerUrl} + + + + + + + + )