Commit 6c616fa
fix(f-canvas): scope layer ordering to its own containers
The first cut of `[fLayers]` made every layer container `position: absolute`
with a `[style.z-index]` binding, which changed the containing block for the
absolutely-positioned `.f-node` / `.f-group` descendants and broke positioning
across many examples and consumer apps.
Switch the strategy: keep the original SCSS shape (only `.f-connections-container`
stays `position: absolute`, as it has been since before v18.6) and add
`isolation: isolate` to each of the three containers so the per-element
z-indices defined in `f-flow.component.scss` (`.f-node` 4, `.f-connection-content` 3,
`.f-group` 1) stay scoped to their own layer instead of competing across layers.
The visible stacking order between the three layers is now driven by the order
the containers appear in the DOM — the template iterates `resolvedLayers()` via
`@for` / `@switch` — not by per-container z-index. The `groupsZIndex` /
`connectionsZIndex` / `nodesZIndex` computeds and the `[style.z-index]` bindings
are removed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4f02fe4 commit 6c616fa
3 files changed
Lines changed: 40 additions & 25 deletions
File tree
- libs/f-flow/src/f-canvas
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
105 | 111 | | |
106 | 112 | | |
107 | 113 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | 114 | | |
119 | 115 | | |
120 | 116 | | |
| |||
0 commit comments