some small changes

+ removed sliding animation from widgets
+ added form fields to Alert Level widget
This commit is contained in:
2025-08-05 17:12:59 -07:00
parent 39ca605fbd
commit 4fb2f7eabe
6 changed files with 36 additions and 12 deletions
@@ -25,6 +25,7 @@ export default function MyDashboard({layout, onLayoutChange, isEditable, isDelet
return (
<chakra.div width="100%">
<ResponsiveGridLayout
useCSSTransforms={false} // remove the sliding animation of the widgets
className="layout"
layout={layout}
cols={12} // Total columns in grid
@@ -39,7 +40,7 @@ export default function MyDashboard({layout, onLayoutChange, isEditable, isDelet
{merged.map((item) => {
const Widget = item.widget;
return (
<Flex key={item.i} css={styles.root} height="100%" >
<Flex key={item.i} css={styles.root} boxShadow={isEditable ? "md":undefined} height="100%" >
<Widget id={item.i} isEditable={isEditable} isDelete={isDelete} DeleteWidget={DeleteWidget}/>
</Flex>
)