From 21d2ea70dfa4504eb649ac2bb343b4d1af016299 Mon Sep 17 00:00:00 2001 From: friebetill Date: Fri, 3 Feb 2023 16:12:35 +0800 Subject: [PATCH] Counteract gravity pull --- src/components/modals/delete_file_modal.ts | 3 +++ styles.css | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/components/modals/delete_file_modal.ts b/src/components/modals/delete_file_modal.ts index 9362348..738cb1d 100644 --- a/src/components/modals/delete_file_modal.ts +++ b/src/components/modals/delete_file_modal.ts @@ -20,6 +20,9 @@ export class DeleteFileModal extends Modal { private readonly onDone: (error: Error | null) => void onOpen(): void { + // Counteract gravity pull by moving box up for balanced composition + this.modalEl.addClass('mb-16') + this.contentEl.createEl('h2', { text: `Delete "${this.file2.name}"?`, }) diff --git a/styles.css b/styles.css index b24827b..9ba4ae9 100644 --- a/styles.css +++ b/styles.css @@ -81,6 +81,10 @@ margin-right: 8px; } +.mb-16 { + margin-bottom: 80px; +} + .text-gray { color: #919191; }