(next: 'card' | 'full')
| 545 | } |
| 546 | }; |
| 547 | const setLayout = (next: 'card' | 'full') => { |
| 548 | if (layout === next) { |
| 549 | return; |
| 550 | } |
| 551 | layout = next; |
| 552 | root.classList.toggle('reading-full', next === 'full'); |
| 553 | }; |
| 554 | |
| 555 | // The opening is a transform the compositor plays, so the page glides |
| 556 | // even while the wrapper is busy putting the article behind it. Until |