Skip to content

Commit

Permalink
💄 修复SingleTool在grid模式下无法显示的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
neila-a committed Apr 20, 2024
1 parent 0e1096d commit 3ac4db9
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions packages/core/src/app/index/ToolsStack.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"use client";
import {
useContext
} from 'react';
import {
Box,
Collapse,
Expand Down Expand Up @@ -113,15 +110,9 @@ export default function ToolsStack(props: {
);
}
function GridContainer() {
return (
<TransitionGroup>
{props.paramTool.map((tool, index) => (
<Collapse key={tool.to}>
<Insert key={tool.to} tool={tool} index={index} />
</Collapse>
))}
</TransitionGroup>
);
return props.paramTool.map((tool, index) => (
<Insert key={tool.to} tool={tool} index={index} />
));
}
return (
<Stack spacing={viewMode == "list" ? 3 : 5} sx={{
Expand All @@ -137,7 +128,7 @@ export default function ToolsStack(props: {
cursor: "pointer"
},
["& > *"]: {
width: viewMode === "list" && "100%"
width: viewMode === "list" ? "100%" : "unset"
}
}}> {/* 工具总览 */}
{props.paramTool.length === 0 ? (
Expand Down

0 comments on commit 3ac4db9

Please sign in to comment.