fix: 视频文件右侧面板显示图片信息 — RightPanel 增加视频判定(v1.4.4)

This commit is contained in:
jinghui committed 2026-11-18 18:56:30 +08:00
1 parent e17b78cd19
commit 9c7c72e3e7
9 files changed
+96 -34

No files matched your search

+25 -5
View File
@@ -14,6 +14,7 @@ import Header from './components/Header';
import LibraryMissingModal from './components/LibraryMissingModal';
import BackToTop from './components/BackToTop';
import ImageEditor from './components/ImageEditor';
import VideoEditModal from './components/VideoEditModal';
import { createLogger } from './utils/logger';
const logger = createLogger('App');
@@ -22,13 +23,14 @@ function App() {
// 使用统一的主题管理 Hook
useTheme();
const { mobileView, setMobileView } = useUIStore();
const {
setLibraries,
setCurrentLibrary,
const { mobileView, setMobileView, videoEditFile, setVideoEditFile } = useUIStore();
const {
setLibraries,
setCurrentLibrary,
removeLibrary,
setShowAddLibraryForm,
triggerExpandLibrarySelector
triggerExpandLibrarySelector,
currentLibraryId
} = useLibraryStore();
const { selectedImage } = useImageStore();
const { setScanProgress } = useScanStore();
@@ -515,6 +517,15 @@ function App() {
onCreateNew={handleCreateNewLibrary}
/>
<ImageEditor />
{/* 视频编辑弹窗(store 全局状态,右侧面板/瀑布流均可触发) */}
{videoEditFile && (
<VideoEditModal
file={videoEditFile}
libraryId={currentLibraryId}
onClose={() => setVideoEditFile(null)}
onDone={() => { setVideoEditFile(null); window.location.reload(); }}
/>
)}
<div className="flex-1 overflow-hidden relative">
{/* 侧边栏视图 */}
<div className={`absolute inset-0 transition-transform duration-300 ${mobileView === 'sidebar' ? 'translate-x-0' : '-translate-x-full'
@@ -590,6 +601,15 @@ function App() {
onCreateNew={handleCreateNewLibrary}
/>
<ImageEditor />
{/* 视频编辑弹窗(store 全局状态,右侧面板/瀑布流均可触发) */}
{videoEditFile && (
<VideoEditModal
file={videoEditFile}
libraryId={currentLibraryId}
onClose={() => setVideoEditFile(null)}
onDone={() => { setVideoEditFile(null); window.location.reload(); }}
/>
)}
<div ref={containerRef} className="flex flex-1 overflow-hidden">
{/* 左侧边栏 */}
<div id="left-panel" style={{ width: `${leftWidth}px` }} className="flex-shrink-0 h-full bg-white dark:bg-gray-800">