Merge pull request #62 from AB1908/O_O

fix: Fix modal title and css overflow
This commit is contained in:
Moritz Jung 2022-10-13 15:27:46 +02:00 committed by GitHub
commit b22db7914c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -77,11 +77,10 @@ export abstract class SelectModal<T> extends Modal {
}
async onOpen() {
const {contentEl} = this;
const {contentEl, titleEl} = this;
titleEl.createEl('h2', {text: this.title});
contentEl.addClass('media-db-plugin-select-modal');
contentEl.createEl('h2', {text: this.title});
contentEl.createEl('p', {text: this.description});
this.elementWrapper = contentEl.createDiv({cls: 'media-db-plugin-select-wrapper'});

View file

@ -23,11 +23,12 @@ small.media-db-plugin-list-text{
}
.media-db-plugin-select-modal {
display: flex;
flex-direction: column;
display: contents;
}
.media-db-plugin-select-wrapper {
display: flex;
flex-direction: column;
margin: 5px;
flex: 1;
overflow-y: auto;