Skip to content

Commit 665af40

Browse files
committed
added a section for the Settings tab to styles.css
1 parent 06daaeb commit 665af40

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/settings/SettingsTab.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class ShikiSettingsTab extends PluginSettingTab {
4949
await this.plugin.saveSettings();
5050
})
5151
.then(textbox => {
52-
textbox.inputEl.style.width = '250px';
52+
textbox.inputEl.addClass('shiki-custom-theme-folder');
5353
});
5454
})
5555
.addExtraButton(button => {

styles.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,8 @@ span.shiki-italic {
9191
span.shiki-ul {
9292
text-decoration: underline;
9393
}
94+
95+
/* Settings tab */
96+
.setting-item-control input.shiki-custom-theme-folder {
97+
min-width: 250px;
98+
}

0 commit comments

Comments
 (0)