widget overflow now scrolls

if content is too big for widget it now scrolls.
This commit is contained in:
2025-07-22 14:55:28 -07:00
parent b066c7f023
commit 7c29b2a14c
4 changed files with 12 additions and 8 deletions
+6
View File
@@ -19,6 +19,12 @@ function App() {
opacity: 1 !important;
border-radius: 5px;
}
.react-resizable-handle-se {
position: sticky;
right: 0;
bottom: 0;
}
`}
/>
<Grid css={styles}
@@ -5,11 +5,8 @@ export default function Widget({ title }) {
const styles = recipe();
return (
<chakra.div >
<chakra.div css={styles.header}
className="widget-handle"
// style={{ padding: '4px', cursor: 'move', background: '#ddd' }}
>
<chakra.div className="react-resizable-handle-se">
<chakra.div css={styles.header} className="widget-handle" >
{title}
</chakra.div>
<chakra.div css={styles.canvas} >
@@ -35,7 +35,7 @@ export default function WidgetCanvas() {
};
return (
<chakra.div height="100%" width="100%">
<chakra.div width="100%">
<ResponsiveGridLayout
className="layout"
layout={layout}
+1
View File
@@ -59,6 +59,7 @@ const widgetRecipe = defineSlotRecipe({
border: "1px solid",
borderColor: "{base300}",
textAlign: "center",
overflow: "auto"
},
header: {
bg: "base100",