diff --git a/src/components/stateless/FixTabPanel/index.jsx b/src/components/stateless/FixTabPanel/index.jsx index 6a226b393..084e82f5a 100644 --- a/src/components/stateless/FixTabPanel/index.jsx +++ b/src/components/stateless/FixTabPanel/index.jsx @@ -28,13 +28,13 @@ const FixTabPanel = React.forwardRef( position: 'relative', overflowY: 'auto', overflowX: 'hidden', - ...style, + ...style }} > {showScrollProgress && ( )} @@ -48,7 +48,7 @@ const FixTabPanel = React.forwardRef( minWidth: 0, height: fill ? '100%' : 'auto', padding: '5px', - boxSizing: 'border-box', + boxSizing: 'border-box' }} > {children} diff --git a/src/components/stateless/MusicPlayer/index.jsx b/src/components/stateless/MusicPlayer/index.jsx index a9dab5471..47b502f43 100644 --- a/src/components/stateless/MusicPlayer/index.jsx +++ b/src/components/stateless/MusicPlayer/index.jsx @@ -8,22 +8,22 @@ const TRACKS = [ title: 'Cyberpunk City', artist: 'MokkaMusic', cover: 'https://images.unsplash.com/photo-1614613535308-eb5fbd3d2c17?w=200&h=200&fit=crop', - src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3', + src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3' }, { id: 2, title: 'Dreamy Vibes', artist: 'Panda Beats', cover: 'https://images.unsplash.com/photo-1493225255756-d9584f8606e9?w=200&h=200&fit=crop', - src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-2.mp3', + src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-2.mp3' }, { id: 3, title: 'Deep Ocean', artist: 'Blue Wave', cover: 'https://images.unsplash.com/photo-1459749411177-287ce1465453?w=200&h=200&fit=crop', - src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-3.mp3', - }, + src: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-3.mp3' + } ] const MusicPlayer = () => { @@ -163,42 +163,42 @@ const MusicPlayer = () => { const remainingTime = duration - currentTime return ( -
+
{/* === 上半部分:播放器控制 === */} -
+
{/* 封面 & 旋转动画 */}
- cover + cover {/* 中间的小圆点,模拟黑胶唱片 */} -
+
{/* 歌曲信息 */} -
-

{currentTrack.title}

-

{currentTrack.artist}

+
+

{currentTrack.title}

+

{currentTrack.artist}

{/* 进度条 & 时间 */} -
+
-
+
{formatTime(currentTime)} -{formatTime(remainingTime)}
{/* 按钮组 */} -
+
{/* 循环切换 */} - {/* 播放/暂停大按钮 */} - {/* 占位/菜单按钮 */} -
{/* === 下半部分:播放列表 (固定高度,内部滚动) === */} -
-
+
+
Playlist ({TRACKS.length})
-
+
{TRACKS.map((track, index) => { const isCurrent = index === currentTrackIndex return ( ) diff --git a/src/components/stateless/PageContainer/index.jsx b/src/components/stateless/PageContainer/index.jsx index bb577a847..806019176 100644 --- a/src/components/stateless/PageContainer/index.jsx +++ b/src/components/stateless/PageContainer/index.jsx @@ -16,7 +16,7 @@ const PageContainer = ({ children, title, footer =
, className, style backgroundColor: token.colorBgContainer, display: 'flex', flexDirection: 'column', - ...style, + ...style }} > {title && ( @@ -27,19 +27,19 @@ const PageContainer = ({ children, title, footer =
, className, style fontSize: '16px', fontWeight: 600, color: token.colorTextHeading, - flexShrink: 0, + flexShrink: 0 }} > {title}
)}
{children} @@ -55,7 +55,7 @@ PageContainer.propTypes = { title: PropTypes.node, footer: PropTypes.node, className: PropTypes.string, - style: PropTypes.object, + style: PropTypes.object } export default PageContainer diff --git a/src/pages/mermaid/index.jsx b/src/pages/mermaid/index.jsx index 15a88394f..22db36178 100644 --- a/src/pages/mermaid/index.jsx +++ b/src/pages/mermaid/index.jsx @@ -16,7 +16,7 @@ import { GitBranch, Activity, Clock, - FileCode, + FileCode } from 'lucide-react' import { Button, Tooltip, message, Space, Card, Segmented, theme } from 'antd' @@ -62,7 +62,7 @@ const SAMPLES = { 2003 : Facebook 2004 : Google 2005 : Youtube - 2006 : Twitter`, + 2006 : Twitter` } const MermaidDemo = () => { @@ -104,8 +104,8 @@ const MermaidDemo = () => { const blob = await (await fetch(dataUrl)).blob() await navigator.clipboard.write([ new ClipboardItem({ - [blob.type]: blob, - }), + [blob.type]: blob + }) ]) message.success('Image copied to clipboard') } catch (err) { @@ -122,54 +122,60 @@ const MermaidDemo = () => { return ( - -
+ +
{/* Editor Section */} -
+
+
Editor
} - className="flex-1 shadow-sm" + className='flex-1 shadow-sm' styles={{ body: { padding: 0, height: 'calc(100% - 57px)', display: 'flex', flexDirection: 'column' } }} > -
+