From 413311a26b5af95b2ae8328a33b23943230a748d Mon Sep 17 00:00:00 2001 From: Prashant Varma Date: Mon, 7 Sep 2026 13:18:50 +0530 Subject: [PATCH 1/3] fix: layer blend mode preview, hovering the mouse over the dividing line changes the blend mode to normal --- frontend/src/components/floating-menus/MenuList.svelte | 7 ++++++- frontend/src/components/panels/Layers.svelte | 7 ++++--- .../src/components/widgets/inputs/DropdownInput.svelte | 3 +++ frontend/src/components/widgets/inputs/FieldInput.svelte | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/floating-menus/MenuList.svelte b/frontend/src/components/floating-menus/MenuList.svelte index 1d90d9cbe32..70e5606dbbd 100644 --- a/frontend/src/components/floating-menus/MenuList.svelte +++ b/frontend/src/components/floating-menus/MenuList.svelte @@ -250,7 +250,6 @@ function onEntryPointerLeave(menuListEntry: MenuListEntry) { if (!menuListEntry.children?.length) { - dispatch("hoverOutEntry"); return; } @@ -263,6 +262,11 @@ } } + function onPointerLeave() { + dispatch("hoverOutEntry"); + return; + } + function includeSeparator(entries: MenuListEntry[][], section: MenuListEntry[], sectionIndex: number, search: string): boolean { const elementsBeforeCurrentSection = entries .slice(0, sectionIndex) @@ -465,6 +469,7 @@ bind:this={scroller} scrollableY={scrollableY && virtualScrollingEntryHeight !== 0} on:scroll={onScroll} + on:pointerleave={onPointerLeave} styles={{ "min-width": virtualScrollingEntryHeight ? `${minWidth}px` : `inherit` }} > {#if virtualScrollingEntryHeight} diff --git a/frontend/src/components/panels/Layers.svelte b/frontend/src/components/panels/Layers.svelte index 539c71298ce..9f5a31c6516 100644 --- a/frontend/src/components/panels/Layers.svelte +++ b/frontend/src/components/panels/Layers.svelte @@ -695,12 +695,13 @@ .control-bar { height: 32px; flex: 0 0 auto; - margin: 0 4px; + padding-right: 15px; + border-bottom: 1px solid var(--color-2-mildblack); - justify-content: space-between; + justify-content: space-evenly; .widget-span:first-child { - flex: 1 1 auto; + flex: 1 0.5 auto; } &:not(:has(*)) { diff --git a/frontend/src/components/widgets/inputs/DropdownInput.svelte b/frontend/src/components/widgets/inputs/DropdownInput.svelte index cb9d3277877..6a8e3bbb9a8 100644 --- a/frontend/src/components/widgets/inputs/DropdownInput.svelte +++ b/frontend/src/components/widgets/inputs/DropdownInput.svelte @@ -54,6 +54,9 @@ $: watchOpen(open); function watchOpen(open: boolean) { + if (!open && initialSelectedIndex !== undefined) { + dispatch("hoverOutEntry", initialSelectedIndex); + } initialSelectedIndex = open ? selectedIndex : undefined; } diff --git a/frontend/src/components/widgets/inputs/FieldInput.svelte b/frontend/src/components/widgets/inputs/FieldInput.svelte index a823b3a2e71..e63dc6a430d 100644 --- a/frontend/src/components/widgets/inputs/FieldInput.svelte +++ b/frontend/src/components/widgets/inputs/FieldInput.svelte @@ -123,7 +123,7 @@