diff --git a/src/components/HistoryPanel.tsx b/src/components/HistoryPanel.tsx index 968600c..52b7c2e 100644 --- a/src/components/HistoryPanel.tsx +++ b/src/components/HistoryPanel.tsx @@ -298,7 +298,7 @@ export const HistoryPanel: React.FC = () => {

暂无历史记录

) : ( -
+
{/* 显示生成记录 */} {[...filteredGenerations].sort((a, b) => b.timestamp - a.timestamp).slice(0, 50).map((generation, index) => (
{ }); // 计算预览位置,确保不超出屏幕边界 - const previewWidth = 300; - const previewHeight = 300; + const previewWidth = 500; + const previewHeight = 500; const offsetX = 10; const offsetY = 10; @@ -400,8 +400,8 @@ export const HistoryPanel: React.FC = () => { }); // 计算预览位置 - const previewWidth = 300; - const previewHeight = 300; + const previewWidth = 500; + const previewHeight = 500; const offsetX = 10; const offsetY = 10; @@ -440,8 +440,8 @@ export const HistoryPanel: React.FC = () => { }} onMouseMove={(e) => { // 调整预览位置以避免被遮挡 - const previewWidth = 300; - const previewHeight = 300; + const previewWidth = 500; + const previewHeight = 500; const offsetX = 10; const offsetY = 10; @@ -558,8 +558,8 @@ export const HistoryPanel: React.FC = () => { }); // 计算预览位置,确保不超出屏幕边界 - const previewWidth = 300; - const previewHeight = 300; + const previewWidth = 500; + const previewHeight = 500; const offsetX = 10; const offsetY = 10; @@ -605,8 +605,8 @@ export const HistoryPanel: React.FC = () => { }); // 计算预览位置 - const previewWidth = 300; - const previewHeight = 300; + const previewWidth = 500; + const previewHeight = 500; const offsetX = 10; const offsetY = 10; @@ -649,8 +649,8 @@ export const HistoryPanel: React.FC = () => { }} onMouseMove={(e) => { // 调整预览位置以避免被遮挡 - const previewWidth = 300; - const previewHeight = 300; + const previewWidth = 500; + const previewHeight = 500; const offsetX = 10; const offsetY = 10; @@ -942,28 +942,6 @@ export const HistoryPanel: React.FC = () => { } })()}
- - {/* 测试按钮 - 用于调试 */} -
- -
{/* 操作 */}
@@ -1053,7 +1031,7 @@ export const HistoryPanel: React.FC = () => { {hoveredImage.width} × {hoveredImage.height}
)} - {hoveredImage.size && ( + {hoveredImage.size > 0 && (
大小: {Math.round(hoveredImage.size / 1024)} KB