Skip to content

Commit

Permalink
#84: Make extra options modal scrollable.
Browse files Browse the repository at this point in the history
Closes #84.
  • Loading branch information
Taitava committed Oct 25, 2021
1 parent 555d3aa commit 94eb813
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/settings/ShellCommandExtraOptionsModal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class ShellCommandExtraOptionsModal extends Modal {
onOpen() {
this.modalEl.createEl("h2", {text: this.t_shell_command.getDefaultShellCommand()});

// Make the modal scrollable if it has more content than what fits in the screen.
this.modalEl.addClass("SC-scrollable");

// Alias field
new Setting(this.modalEl)
.setName("Alias")
Expand Down
4 changes: 4 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
display: none;
}

.SC-scrollable {
overflow-y: auto;
}


/*
* SHELL COMMAND SETTING CONTAINERS
Expand Down

0 comments on commit 94eb813

Please sign in to comment.