From cc1b34d3e53d33ea94569af5ba4f1c9d6d23edf9 Mon Sep 17 00:00:00 2001 From: freeplay Date: Sun, 25 Jun 2023 18:19:37 -0400 Subject: [PATCH] feat: Make scrollable widgets flexible --- packages/client/src/components/MkContainer.vue | 1 + packages/client/src/components/MkWidgets.vue | 5 ++++- packages/client/src/ui/universal.widgets.vue | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/MkContainer.vue b/packages/client/src/components/MkContainer.vue index 62c198cb16..4c4e91160c 100644 --- a/packages/client/src/components/MkContainer.vue +++ b/packages/client/src/components/MkContainer.vue @@ -196,6 +196,7 @@ export default defineComponent({ &.scrollable { display: flex; flex-direction: column; + flex-grow: 1; > .content { overflow: auto; diff --git a/packages/client/src/components/MkWidgets.vue b/packages/client/src/components/MkWidgets.vue index d48fc53832..0d64c9fb62 100644 --- a/packages/client/src/components/MkWidgets.vue +++ b/packages/client/src/components/MkWidgets.vue @@ -172,6 +172,9 @@ function onContextmenu(widget: Widget, ev: MouseEvent) {