* A self-owned dismiss control. On phones the system close (X) sits in the top * safe-area zone (status bar / Dynamic Island) where it can be untappable, and * this modal has no other exit (no Esc key, no backdrop to tap) — so it must * always offer a reachable Close. The footer follows the (i
()
| 235 | * home-indicator inset on mobile (#635). |
| 236 | */ |
| 237 | private addCloseFooter(): void { |
| 238 | const footer = this.contentEl.createDiv("quickadd-update-modal-footer"); |
| 239 | new ButtonComponent(footer) |
| 240 | .setButtonText("Done") |
| 241 | .setCta() |
| 242 | .onClick(() => this.close()); |
| 243 | } |
| 244 | |
| 245 | onClose() { |
| 246 | const { contentEl } = this; |