Skip to content

Commit de6dc78

Browse files
committed
fix: alignment of fold indicator in style settings
1 parent 3c3df1b commit de6dc78

File tree

2 files changed

+19
-8
lines changed

2 files changed

+19
-8
lines changed

source/5-editor/folds_search-matches.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ body .markdown-rendered .search-highlight > div.is-active {
2020
/* ────────────────────────────────────────────────────────────────────────── */
2121
/* FOLDS */
2222

23-
:is(.style-settings-collapse-indicator, .collapse-icon) > .svg-icon.svg-icon.svg-icon.svg-icon {
23+
.collapse-icon > .svg-icon.svg-icon.svg-icon.svg-icon {
2424
width: 0.75em;
2525
height: 0.75em;
26-
margin-left: -0.35em;
27-
stroke-width: 5px;
26+
margin-left: -1em;
27+
stroke-width: 4px;
28+
29+
&:hover {
30+
stroke: var(--icon-color-hover);
31+
}
2832
}
2933

3034
:is(.markdown-preview-view, .cm-line:not(.cm-active)) .collapse-icon > .svg-icon.svg-icon,
3135
body .cm-s-obsidian .is-collapsed ~ .cm-formatting-list {
3236
color: var(--text-faint);
3337
}
34-
35-
:is(.style-settings-collapse-indicator, .collapse-icon) > .svg-icon:hover {
36-
stroke: var(--icon-color-hover);
37-
}

source/6-plugins/style_settings_plugin.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,17 @@ body
100100
color: var(--text-muted);
101101
}
102102

103+
/* fold indicators */
104+
.style-settings-collapse-indicator > .svg-icon {
105+
width: 0.6em;
106+
height: 0.6em;
107+
stroke-width: 4px;
108+
109+
&:hover {
110+
stroke: var(--icon-color-hover);
111+
}
112+
}
113+
103114
/* ───────────────────────────────────────────────── */
104115
/** Style Settings: As Tab
105116
──────────────────────────────────────────────────── */
@@ -110,7 +121,7 @@ body
110121
}
111122

112123
.workspace-leaf-content[data-type="style-settings"] .view-content {
113-
padding: 40px;
124+
padding: 30px;
114125
}
115126

116127
/* FIX for https://github.com/mgmeyers/obsidian-style-settings/issues/104 */

0 commit comments

Comments
 (0)