From 7c29b2a14c9d351e2150067c1363d0c31db05507 Mon Sep 17 00:00:00 2001 From: Venessa Kuchenik Date: Tue, 22 Jul 2025 14:55:28 -0700 Subject: [PATCH] widget overflow now scrolls if content is too big for widget it now scrolls. --- client/src/App.jsx | 6 ++++++ client/src/components/layout/Canvas/Widget.jsx | 9 +++------ .../src/components/layout/Canvas/views/WidgetCanvas.jsx | 4 ++-- client/src/theme.js | 1 + 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index e3e5cce..c60c2f9 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -19,6 +19,12 @@ function App() { opacity: 1 !important; border-radius: 5px; } + + .react-resizable-handle-se { + position: sticky; + right: 0; + bottom: 0; + } `} /> - + + {title} - + This is the widget content - drag or resize me! diff --git a/client/src/components/layout/Canvas/views/WidgetCanvas.jsx b/client/src/components/layout/Canvas/views/WidgetCanvas.jsx index f30b150..ba57e32 100644 --- a/client/src/components/layout/Canvas/views/WidgetCanvas.jsx +++ b/client/src/components/layout/Canvas/views/WidgetCanvas.jsx @@ -35,7 +35,7 @@ export default function WidgetCanvas() { }; return ( - + {layout.map((item) => ( - + ))} diff --git a/client/src/theme.js b/client/src/theme.js index 31dbac5..f2fb2ca 100644 --- a/client/src/theme.js +++ b/client/src/theme.js @@ -59,6 +59,7 @@ const widgetRecipe = defineSlotRecipe({ border: "1px solid", borderColor: "{base300}", textAlign: "center", + overflow: "auto" }, header: { bg: "base100",