Commit 4f2d061
Fix connector line x-alignment: anchor to Optimize chip via JS
Previously the .opt-connector used margin:0 auto, centering it in the
card rather than under the Optimize chip (3rd of 4 pipeline chips, so
right-of-center). alignConnector() now measures the chip's center X
at runtime and sets marginLeft accordingly, so the line always drops
straight from Optimize regardless of layout or viewport size.
Also adds a window resize handler to re-align on viewport changes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 6e158f6 commit 4f2d061
2 files changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
217 | 235 | | |
218 | 236 | | |
| 237 | + | |
219 | 238 | | |
220 | 239 | | |
221 | 240 | | |
| |||
225 | 244 | | |
226 | 245 | | |
227 | 246 | | |
| 247 | + | |
228 | 248 | | |
229 | 249 | | |
230 | 250 | | |
| |||
237 | 257 | | |
238 | 258 | | |
239 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
240 | 265 | | |
241 | 266 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
204 | | - | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
0 commit comments