Unify the sidebars, and fix popover menus pinning to the corner One sidebar treatment across the application. The main sidebar sat on --ink-surface with an --ink-raised divider while the docs sidebars sat on --ink-void with a --line divider; two sidebars in one application that differ by a surface rung read as two applications. Both now use the same container, and the main sidebar's hand-written rows go through sidebar_link/1, so its rows gain the shared hover and focus behaviour and lose forty lines of duplicated markup. The brand is a wordmark, a rule, and the section name: two destinations, because they answer different questions. The wordmark leaves for the application; the section name returns to this section's index. That also retires the "All components" and "Overview" rows, which listed a destination the reader was already looking at. The footer is its own block behind a rule, with colour-only hover. Giving secondary links the nav's background wash made a footer link look as important as the section being worked in. Hover now goes to the brightest ink rather than one step up. The subtler lift was correct in isolation and unreadable in practice: the background wash arrives at the same moment, so a small text change reads as "the background moved" and nothing else. Two real defects fixed along the way: - The theme control's glyph sat against its right edge. `.btn[data-size=sm]` sets `padding: 8px 15px` at (0,2,0) and outranked a bare `.theme-toggle`, so the padding survived inside a 32px box. The selector now carries the size attribute. - Every native popover menu pinned itself to the viewport's top-left corner, the account menu included. `.menu` set `margin: 0`, which defeats the user agent's `margin: auto` centring, and nothing replaced it with anchor positioning. Centring is restored as the fallback, with the panel anchored under its trigger where the browser supports it.
Unify the sidebars, and fix popover menus pinning to the corner
Deploy story
What this commit did to the running system — joined from the forge receipt chain, the part a commit page elsewhere cannot show.
Not deployed through the forge lane
No push, promotion, build, or deploy receipt references this commit (receipts are scanned over a bounded recent window). Changes shipped by full node replacement carry their proof in the release gate receipt instead.
Changed files
-
modified
assets/css/app.css -
modified
assets/css/openagents.css -
modified
lib/openagents_web/component_catalog.ex -
modified
lib/openagents_web/components/layouts.ex -
modified
lib/openagents_web/components/layouts/components.html.heex -
modified
lib/openagents_web/components/layouts/docs.html.heex -
modified
lib/openagents_web/live/components_live.ex
Diff
7 files changed, +221 -106
assets/css/app.css modified +28 -12
@@ -229,8 +229,10 @@
| 229 | 229 |
|
| 230 | 230 |
|
| 231 | 231 |
|
| 232 |
|
|
| 233 |
|
|
| 232 |
|
|
| 233 |
|
|
| 234 |
|
|
| 235 |
|
|
| 234 | 236 |
|
| 235 | 237 |
|
| 236 | 238 |
|
@@ -238,8 +240,10 @@
| 238 | 240 |
|
| 239 | 241 |
|
| 240 | 242 |
|
| 243 |
|
|
| 244 |
|
|
| 241 | 245 |
|
| 242 |
|
|
| 246 |
|
|
| 243 | 247 |
|
| 244 | 248 |
|
| 245 | 249 |
|
@@ -254,7 +258,7 @@
| 254 | 258 |
|
| 255 | 259 |
|
| 256 | 260 |
|
| 257 |
|
|
| 261 |
|
|
| 258 | 262 |
|
| 259 | 263 |
|
| 260 | 264 |
|
@@ -289,18 +293,23 @@
| 289 | 293 |
|
| 290 | 294 |
|
| 291 | 295 |
|
| 292 |
|
|
| 293 |
|
|
| 294 |
|
|
| 296 |
|
|
| 297 |
|
|
| 298 |
|
|
| 299 |
|
|
| 300 |
|
|
| 301 |
|
|
| 295 | 302 |
|
| 296 | 303 |
|
| 297 | 304 |
|
| 298 | 305 |
|
| 299 |
|
|
| 306 |
|
|
| 300 | 307 |
|
| 301 | 308 |
|
| 302 | 309 |
|
| 303 |
|
|
| 310 |
|
|
| 311 |
|
|
| 312 |
|
|
| 304 | 313 |
|
| 305 | 314 |
|
| 306 | 315 |
|
@@ -376,7 +385,10 @@
| 376 | 385 |
|
| 377 | 386 |
|
| 378 | 387 |
|
| 379 |
|
|
| 388 |
|
|
| 389 |
|
|
| 390 |
|
|
| 391 |
|
|
| 380 | 392 |
|
| 381 | 393 |
|
| 382 | 394 |
|
@@ -457,7 +469,7 @@
| 457 | 469 |
|
| 458 | 470 |
|
| 459 | 471 |
|
| 460 |
|
|
| 472 |
|
|
| 461 | 473 |
|
| 462 | 474 |
|
| 463 | 475 |
|
@@ -623,7 +635,11 @@
| 623 | 635 |
|
| 624 | 636 |
|
| 625 | 637 |
|
| 626 |
|
|
| 638 |
|
|
| 639 |
|
|
| 640 |
|
|
| 641 |
|
|
| 642 |
|
|
| 627 | 643 |
|
| 628 | 644 |
|
| 629 | 645 |
|
assets/css/openagents.css modified +122 -2
@@ -1628,7 +1628,12 @@
| 1628 | 1628 |
|
| 1629 | 1629 |
|
| 1630 | 1630 |
|
| 1631 |
|
|
| 1631 |
|
|
| 1632 |
|
|
| 1633 |
|
|
| 1634 |
|
|
| 1635 |
|
|
| 1636 |
|
|
| 1632 | 1637 |
|
| 1633 | 1638 |
|
| 1634 | 1639 |
|
@@ -1638,6 +1643,16 @@
| 1638 | 1643 |
|
| 1639 | 1644 |
|
| 1640 | 1645 |
|
| 1646 |
|
|
| 1647 |
|
|
| 1648 |
|
|
| 1649 |
|
|
| 1650 |
|
|
| 1651 |
|
|
| 1652 |
|
|
| 1653 |
|
|
| 1654 |
|
|
| 1655 |
|
|
| 1641 | 1656 |
|
| 1642 | 1657 |
|
| 1643 | 1658 |
|
@@ -2101,7 +2116,7 @@
| 2101 | 2116 |
|
| 2102 | 2117 |
|
| 2103 | 2118 |
|
| 2104 |
|
|
| 2119 |
|
|
| 2105 | 2120 |
|
| 2106 | 2121 |
|
| 2107 | 2122 |
|
@@ -2357,3 +2372,108 @@
| 2357 | 2372 |
|
| 2358 | 2373 |
|
| 2359 | 2374 |
|
| 2375 |
|
|
| 2376 |
|
|
| 2377 |
|
|
| 2378 |
|
|
| 2379 |
|
|
| 2380 |
|
|
| 2381 |
|
|
| 2382 |
|
|
| 2383 |
|
|
| 2384 |
|
|
| 2385 |
|
|
| 2386 |
|
|
| 2387 |
|
|
| 2388 |
|
|
| 2389 |
|
|
| 2390 |
|
|
| 2391 |
|
|
| 2392 |
|
|
| 2393 |
|
|
| 2394 |
|
|
| 2395 |
|
|
| 2396 |
|
|
| 2397 |
|
|
| 2398 |
|
|
| 2399 |
|
|
| 2400 |
|
|
| 2401 |
|
|
| 2402 |
|
|
| 2403 |
|
|
| 2404 |
|
|
| 2405 |
|
|
| 2406 |
|
|
| 2407 |
|
|
| 2408 |
|
|
| 2409 |
|
|
| 2410 |
|
|
| 2411 |
|
|
| 2412 |
|
|
| 2413 |
|
|
| 2414 |
|
|
| 2415 |
|
|
| 2416 |
|
|
| 2417 |
|
|
| 2418 |
|
|
| 2419 |
|
|
| 2420 |
|
|
| 2421 |
|
|
| 2422 |
|
|
| 2423 |
|
|
| 2424 |
|
|
| 2425 |
|
|
| 2426 |
|
|
| 2427 |
|
|
| 2428 |
|
|
| 2429 |
|
|
| 2430 |
|
|
| 2431 |
|
|
| 2432 |
|
|
| 2433 |
|
|
| 2434 |
|
|
| 2435 |
|
|
| 2436 |
|
|
| 2437 |
|
|
| 2438 |
|
|
| 2439 |
|
|
| 2440 |
|
|
| 2441 |
|
|
| 2442 |
|
|
| 2443 |
|
|
| 2444 |
|
|
| 2445 |
|
|
| 2446 |
|
|
| 2447 |
|
|
| 2448 |
|
|
| 2449 |
|
|
| 2450 |
|
|
| 2451 |
|
|
| 2452 |
|
|
| 2453 |
|
|
| 2454 |
|
|
| 2455 |
|
|
| 2456 |
|
|
| 2457 |
|
|
| 2458 |
|
|
| 2459 |
|
|
| 2460 |
|
|
| 2461 |
|
|
| 2462 |
|
|
| 2463 |
|
|
| 2464 |
|
|
| 2465 |
|
|
| 2466 |
|
|
| 2467 |
|
|
| 2468 |
|
|
| 2469 |
|
|
| 2470 |
|
|
| 2471 |
|
|
| 2472 |
|
|
| 2473 |
|
|
| 2474 |
|
|
| 2475 |
|
|
| 2476 |
|
|
| 2477 |
|
|
| 2478 |
|
|
| 2479 |
|
lib/openagents_web/component_catalog.ex modified +7
@@ -189,6 +189,13 @@ defmodule OpenAgentsWeb.ComponentCatalog do
| 189 | 189 |
|
| 190 | 190 |
|
| 191 | 191 |
|
| 192 |
|
|
| 193 |
|
|
| 194 |
|
|
| 195 |
|
|
| 196 |
|
|
| 197 |
|
|
| 198 |
|
|
| 192 | 199 |
|
| 193 | 200 |
|
| 194 | 201 |
|
lib/openagents_web/components/layouts.ex modified +46 -55
@@ -135,6 +135,30 @@ defmodule OpenAgentsWeb.Layouts do
| 135 | 135 |
|
| 136 | 136 |
|
| 137 | 137 |
|
| 138 |
|
|
| 139 |
|
|
| 140 |
|
|
| 141 |
|
|
| 142 |
|
|
| 143 |
|
|
| 144 |
|
|
| 145 |
|
|
| 146 |
|
|
| 147 |
|
|
| 148 |
|
|
| 149 |
|
|
| 150 |
|
|
| 151 |
|
|
| 152 |
|
|
| 153 |
|
|
| 154 |
|
|
| 155 |
|
|
| 156 |
|
|
| 157 |
|
|
| 158 |
|
|
| 159 |
|
|
| 160 |
|
|
| 161 |
|
|
| 138 | 162 |
|
| 139 | 163 |
|
| 140 | 164 |
|
@@ -379,45 +403,20 @@ defmodule OpenAgentsWeb.Layouts do
| 379 | 403 |
|
| 380 | 404 |
|
| 381 | 405 |
|
| 382 |
|
|
| 383 |
|
|
| 384 |
|
|
| 385 |
|
|
| 386 |
|
|
| 387 |
|
|
| 388 |
|
|
| 389 |
|
|
| 390 |
|
|
| 391 |
|
|
| 392 |
|
|
| 393 |
|
|
| 394 |
|
|
| 395 |
|
|
| 396 |
|
|
| 397 |
|
|
| 398 |
|
|
| 399 |
|
|
| 400 |
|
|
| 401 |
|
|
| 402 |
|
|
| 403 |
|
|
| 404 |
|
|
| 405 |
|
|
| 406 |
|
|
| 407 |
|
|
| 408 |
|
|
| 409 |
|
|
| 410 |
|
|
| 411 |
|
|
| 412 |
|
|
| 413 |
|
|
| 414 |
|
|
| 415 |
|
|
| 416 |
|
|
| 417 |
|
|
| 418 |
|
|
| 419 |
|
|
| 420 |
|
|
| 406 |
|
|
| 407 |
|
|
| 408 |
|
|
| 409 |
|
|
| 410 |
|
|
| 411 |
|
|
| 412 |
|
|
| 413 |
|
|
| 414 |
|
|
| 415 |
|
|
| 416 |
|
|
| 417 |
|
|
| 418 |
|
|
| 419 |
|
|
| 421 | 420 |
|
| 422 | 421 |
|
| 423 | 422 |
|
@@ -446,22 +445,14 @@ defmodule OpenAgentsWeb.Layouts do
| 446 | 445 |
|
| 447 | 446 |
|
| 448 | 447 |
|
| 449 |
|
|
| 450 |
|
|
| 451 |
|
|
| 452 |
|
|
| 453 |
|
|
| 454 |
|
|
| 455 |
|
|
| 456 |
|
|
| 457 |
|
|
| 458 |
|
|
| 459 |
|
|
| 460 |
|
|
| 461 |
|
|
| 462 |
|
|
| 463 |
|
|
| 464 |
|
|
| 448 |
|
|
| 449 |
|
|
| 450 |
|
|
| 451 |
|
|
| 452 |
|
|
| 453 |
|
|
| 454 |
|
|
| 455 |
|
|
| 465 | 456 |
|
| 466 | 457 |
|
| 467 | 458 |
|
lib/openagents_web/components/layouts/components.html.heex modified +1 -20
@@ -1,28 +1,9 @@
| 1 | 1 |
|
| 2 | 2 |
|
| 3 | 3 |
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 4 |
|
|
| 13 | 5 |
|
| 14 | 6 |
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
| 26 | 7 |
|
| 27 | 8 |
|
| 28 | 9 |
|
lib/openagents_web/components/layouts/docs.html.heex modified +1 -17
@@ -1,24 +1,8 @@
| 1 | 1 |
|
| 2 | 2 |
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 3 |
|
|
| 12 | 4 |
|
| 13 | 5 |
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
|
| 22 | 6 |
|
| 23 | 7 |
|
| 24 | 8 |
|
lib/openagents_web/live/components_live.ex modified +16
@@ -616,6 +616,22 @@ defmodule OpenAgentsWeb.ComponentsLive do
| 616 | 616 |
|
| 617 | 617 |
|
| 618 | 618 |
|
| 619 |
|
|
| 620 |
|
|
| 621 |
|
|
| 622 |
|
|
| 623 |
|
|
| 624 |
|
|
| 625 |
|
|
| 626 |
|
|
| 627 |
|
|
| 628 |
|
|
| 629 |
|
|
| 630 |
|
|
| 631 |
|
|
| 632 |
|
|
| 633 |
|
|
| 634 |
|
|
| 619 | 635 |
|
| 620 | 636 |
|
| 621 | 637 |
|