database content UX

This commit is contained in:
SPRINX0\prochazka
2025-05-26 12:58:20 +02:00
parent 366ab2e0cd
commit b3497c7306
6 changed files with 57 additions and 7 deletions

View File

@@ -12,6 +12,7 @@
export let title;
export let name;
export let skip = false;
export let positiveCondition = true;
export let height = null;
export let collapsed = null;
@@ -33,11 +34,12 @@
collapsed,
height,
skip,
positiveCondition,
},
dynamicProps
);
$: updateWidgetItemDefinition(widgetItemIndex, { collapsed: !visible, height, skip });
$: updateWidgetItemDefinition(widgetItemIndex, { collapsed: !visible, height, skip, positiveCondition });
$: setInitialSize(height, $widgetColumnBarHeight);
@@ -67,7 +69,7 @@
$: collapsible = $dynamicProps.visibleItemsCount != 1 || !visible;
</script>
{#if !skip}
{#if !skip && positiveCondition}
<WidgetTitle
clickable={collapsible}
on:click={collapsible ? () => (visible = !visible) : null}