Counteract gravity pull

This commit is contained in:
friebetill 2023-02-03 16:12:35 +08:00
parent 3b8500a9bd
commit 21d2ea70df
2 changed files with 7 additions and 0 deletions

View file

@ -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}"?`,
})

View file

@ -81,6 +81,10 @@
margin-right: 8px;
}
.mb-16 {
margin-bottom: 80px;
}
.text-gray {
color: #919191;
}