diff --git a/packages/hub-ui/src/client/components/dock/DockEdge.stories.ts b/packages/hub-ui/src/client/components/dock/DockEdge.stories.ts index 2d353952..9ff890f9 100644 --- a/packages/hub-ui/src/client/components/dock/DockEdge.stories.ts +++ b/packages/hub-ui/src/client/components/dock/DockEdge.stories.ts @@ -135,3 +135,37 @@ export const WithGroup: Story = { ), }), } + +function patternedEdgeStory(theme: 'light' | 'dark'): Story { + return { + globals: { theme }, + render: () => ({ + setup: () => mountWithContext( + { + entries: categorizedEntries, + selectedId: 'overview', + panel: { mode: 'edge', position: 'bottom', height: 40, width: 30 }, + session: { open: true }, + }, + ctx => h('div', { class: 'relative w-screen h-screen overflow-hidden bg-secondary bg-grid-24' }, [ + h('div', { + 'aria-hidden': 'true', + 'class': 'pointer-events-none absolute left-[14%] top-[36%] h-72 w-72 rounded-full bg-primary-500 op40', + }), + h('div', { + 'aria-hidden': 'true', + 'class': 'pointer-events-none absolute right-[12%] bottom-[8%] h-40 w-72 rounded-3xl bg-active', + }), + h(DockEdge, { context: ctx }, { view: ({ entry }: any) => body(entry) }), + h(FloatingElements), + ]), + ), + }), + } +} + +/** Tinted glass edge material blurring a grid in light mode. */ +export const GlassMaterialLight: Story = patternedEdgeStory('light') + +/** Tinted glass edge material blurring a grid in dark mode. */ +export const GlassMaterialDark: Story = patternedEdgeStory('dark') diff --git a/packages/hub-ui/src/client/components/dock/DockEdge.vue b/packages/hub-ui/src/client/components/dock/DockEdge.vue index a7ca55ab..169b0fb8 100644 --- a/packages/hub-ui/src/client/components/dock/DockEdge.vue +++ b/packages/hub-ui/src/client/components/dock/DockEdge.vue @@ -407,7 +407,7 @@ const dragPreviewStyle = computed(() => {