()
| 441 | } |
| 442 | |
| 443 | protected setupContainer(): void { |
| 444 | super.setupContainer(); |
| 445 | |
| 446 | // Make rootElement fill its container and establish flex context |
| 447 | if (this.rootElement) { |
| 448 | this.rootElement.classList.remove( |
| 449 | "tn-static-display-block-2a1b75c9", |
| 450 | "tn-static-display-flex-75816cae", |
| 451 | "tn-static-display-flex-8bb39979", |
| 452 | "tn-static-display-inline-block-60e32dcb", |
| 453 | "tn-static-display-inline-cccfa456", |
| 454 | "tn-static-display-inline-flex-f984c520", |
| 455 | "tn-static-display-none-6b99de8b", |
| 456 | "tn-static-flex-direction-column-06c8b5ed", |
| 457 | "tn-static-height-0-7a31cef0", |
| 458 | "tn-static-height-100-62264068", |
| 459 | "tn-static-height-12px-06c0747e", |
| 460 | "tn-static-height-16px-30de4aee", |
| 461 | "tn-static-height-24px-29a11d37", |
| 462 | "tn-static-min-height-800px-997b4c8c" |
| 463 | ); |
| 464 | this.rootElement.classList.add("tn-static-display-flex-4d51fc62"); |
| 465 | } |
| 466 | |
| 467 | // Use correct document for pop-out window support |
| 468 | const doc = this.containerEl.ownerDocument; |
| 469 | |
| 470 | // Create items container |
| 471 | const itemsContainer = doc.createElement("div"); |
| 472 | itemsContainer.className = "tn-bases-items-container"; |
| 473 | // Use flex: 1 to fill available space in the rootElement flex container |
| 474 | // max-height: 100vh prevents unbounded growth when embedded in notes |
| 475 | // overflow-y: auto provides scrolling when content exceeds available height |
| 476 | itemsContainer.classList.remove( |
| 477 | "tn-static-flex-1-14e3b769", |
| 478 | "tn-static-flex-1-97445a8d", |
| 479 | "tn-static-font-size-12px-b0cc7e05", |
| 480 | "tn-static-margin-top-0-5rem-3dc98b5e", |
| 481 | "tn-static-margin-top-0-d462248a", |
| 482 | "tn-static-margin-top-16px-1b0f4999", |
| 483 | "tn-static-margin-top-1rem-2239d6d5", |
| 484 | "tn-static-margin-top-20px-a26bda7d", |
| 485 | "tn-static-margin-top-30px-2fbbbcd4", |
| 486 | "tn-static-margin-top-4px-96ad6099", |
| 487 | "tn-static-margin-top-8px-8a77e5a3", |
| 488 | "tn-static-margin-top-8px-f4f01e68", |
| 489 | "tn-static-max-height-400px-f0787633", |
| 490 | "tn-static-overflow-y-auto-03df744e", |
| 491 | "tn-static-overflow-y-clip-c5043043", |
| 492 | "tn-static-position-relative-d461c96d" |
| 493 | ); |
| 494 | itemsContainer.classList.add("tn-static-margin-top-12px-91e0f558"); |
| 495 | this.rootElement?.appendChild(itemsContainer); |
| 496 | this.itemsContainer = itemsContainer; |
| 497 | this.registerContainerListeners(); |
| 498 | this.setupContainerDragHandlers(); |
| 499 | } |
| 500 |
nothing calls this directly
no test coverage detected