Skip to content

Commit 17f131b

Browse files
authored
Merge pull request #3452 from obsidian-tasks-group/fix-includes-ui
fix: Improve the layout of Includes section in settings
2 parents e07eedb + 40d9799 commit 17f131b

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

src/Config/SettingsTab.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,13 @@
123123
align-items: stretch;
124124
}
125125
}
126+
127+
.tasks-includes-setting {
128+
.setting-item-info:has(.setting-item-name:empty):has(.setting-item-description:empty) {
129+
display: none;
130+
}
131+
132+
.setting-item-control {
133+
align-items: unset;
134+
}
135+
}

src/Config/SettingsTab.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,12 @@ export class SettingsTab extends PluginSettingTab {
148148
);
149149

150150
// ---------------------------------------------------------------------------
151-
new Setting(containerEl).setName('Includes').setHeading();
151+
new Setting(containerEl)
152+
.setName('Includes')
153+
.setHeading()
154+
.setDesc(
155+
'You can define named instructions here, that you can re-use in multiple queries. They can be used with "{{includes.name}}" and "include name".',
156+
);
152157
// ---------------------------------------------------------------------------
153158
this.renderIncludesSettings(containerEl);
154159

0 commit comments

Comments
 (0)