|
|
@@ -371,28 +371,18 @@ const Playground = () => {
|
|
|
}, [setMessage, saveMessagesImmediately]);
|
|
|
|
|
|
return (
|
|
|
- <div className="h-full bg-gray-50 mt-[60px]">
|
|
|
- <Layout style={{ height: '100%', background: 'transparent' }} className="flex flex-col md:flex-row">
|
|
|
+ <div className="h-full">
|
|
|
+ <Layout className="h-full bg-transparent flex flex-col md:flex-row">
|
|
|
{(showSettings || !isMobile) && (
|
|
|
<Layout.Sider
|
|
|
- style={{
|
|
|
- background: 'transparent',
|
|
|
- borderRight: 'none',
|
|
|
- flexShrink: 0,
|
|
|
- minWidth: isMobile ? '100%' : 320,
|
|
|
- maxWidth: isMobile ? '100%' : 320,
|
|
|
- height: isMobile ? 'auto' : 'calc(100vh - 66px)',
|
|
|
- overflow: 'auto',
|
|
|
- position: isMobile ? 'fixed' : 'relative',
|
|
|
- zIndex: isMobile ? 1000 : 1,
|
|
|
- width: '100%',
|
|
|
- top: 0,
|
|
|
- left: 0,
|
|
|
- right: 0,
|
|
|
- bottom: 0,
|
|
|
- }}
|
|
|
+ className={`
|
|
|
+ bg-transparent border-r-0 flex-shrink-0 overflow-auto mt-[60px]
|
|
|
+ ${isMobile
|
|
|
+ ? 'fixed top-0 left-0 right-0 bottom-0 z-[1000] w-full h-auto bg-white shadow-lg'
|
|
|
+ : 'relative z-[1] w-80 h-[calc(100vh-66px)]'
|
|
|
+ }
|
|
|
+ `}
|
|
|
width={isMobile ? '100%' : 320}
|
|
|
- className={isMobile ? 'bg-white shadow-lg' : ''}
|
|
|
>
|
|
|
<OptimizedSettingsPanel
|
|
|
inputs={inputs}
|
|
|
@@ -418,7 +408,7 @@ const Playground = () => {
|
|
|
)}
|
|
|
|
|
|
<Layout.Content className="relative flex-1 overflow-hidden">
|
|
|
- <div className="overflow-hidden flex flex-col lg:flex-row h-[calc(100vh-66px)]">
|
|
|
+ <div className="overflow-hidden flex flex-col lg:flex-row h-[calc(100vh-66px)] mt-[60px]">
|
|
|
<div className="flex-1 flex flex-col">
|
|
|
<ChatArea
|
|
|
chatRef={chatRef}
|
|
|
@@ -455,19 +445,7 @@ const Playground = () => {
|
|
|
|
|
|
{/* 调试面板 - 移动端覆盖层 */}
|
|
|
{showDebugPanel && isMobile && (
|
|
|
- <div
|
|
|
- style={{
|
|
|
- position: 'fixed',
|
|
|
- top: 0,
|
|
|
- left: 0,
|
|
|
- right: 0,
|
|
|
- bottom: 0,
|
|
|
- zIndex: 1000,
|
|
|
- backgroundColor: 'white',
|
|
|
- overflow: 'auto',
|
|
|
- }}
|
|
|
- className="shadow-lg"
|
|
|
- >
|
|
|
+ <div className="fixed top-0 left-0 right-0 bottom-0 z-[1000] bg-white overflow-auto shadow-lg">
|
|
|
<OptimizedDebugPanel
|
|
|
debugData={debugData}
|
|
|
activeDebugTab={activeDebugTab}
|