fix: Fix modal title and css overflow

- Fixes #58
This commit is contained in:
AB1908 2022-10-13 17:36:35 +05:30
parent a3905daf5b
commit f0884bd910
No known key found for this signature in database
GPG key ID: A1DCD49686611B33
2 changed files with 5 additions and 4 deletions

View file

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

View file

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