Commit 05bdcc3
committed
fix: only the active service renders — wrong page shown, and slowness
Clicking WhatsApp left Claude on screen while the address bar said
web.whatsapp.com, and the app felt sluggish. Same cause for both.
`.pane webview` declared `visibility: visible`. CSS visibility inherits, and
an explicit `visible` on a child overrides a hidden ancestor — so every
webview un-hid itself inside its hidden pane. All services rendered at once,
stacked absolutely, and you saw whichever painted last. Chromium also never
throttled them, since none were occluded.
Measured before: four panes, four webviews `visible`, all full size.
After: exactly one visible, three hidden, CPU 0% across the board.
Also removes the global `webview { visibility: hidden }` / `webview.active`
rules. They predate the pane wrapper and key off a class nothing sets any
more; with the child rule gone they were hiding the active service too.
Verified through single view, split, spotlight, back to single, and clicking
each service in turn.1 parent 4b328a9 commit 05bdcc3
3 files changed
Lines changed: 11 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
228 | 226 | | |
229 | 227 | | |
230 | 228 | | |
| |||
632 | 630 | | |
633 | 631 | | |
634 | 632 | | |
635 | | - | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
636 | 638 | | |
637 | 639 | | |
638 | 640 | | |
| |||
0 commit comments