Outline formatting is misleading/misaligned when only some nodes have children (heading indentation)

I haven’t updated to 1.2.7 yet, but is this the fix?

from Obsidian Release v1.2.7:

No, it’s not.

The CSS snippet works perfectly for the Outline, but with the new Bookmarks core plugin(v1.2.7), it also affects the icons there
Screenshot 2023-05-07 at 4.22.01 PM

Here’s an updated version :slight_smile: I found a way to target only the outline and not change anything inside the bookmarks panel

[data-type="outline"] .tree-item {
  position: relative;
}
[data-type="outline"] .tree-item-icon {
  position: absolute;
}
[data-type="outline"] .tree-item-inner {
  margin-left: calc(2.5 * var(--size-2-3));
}
[data-type="outline"] .tree-item-self {
  position: relative;
}
[data-type="outline"] .tree-item-self::before {
  content: '';
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='12' fill='currentColor' /%3E%3C/svg%3E%0A") no-repeat 50% 50%;
  mask-size: cover;
  left: 11px;
  width: calc(.25 * var(--nav-item-size));
  height: calc(.25 * var(--nav-item-size));
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--collapse-icon-color);
  opacity: 0.85;
}
[data-type="outline"] .tree-item-self.mod-collapsible::before {
  display: none;
}
[data-type="outline"] .tree-item-children {
  padding-left: 0;
}
2 Likes

Thanks @valkyrie

1 Like

Thank you so much for the update! :grinning:

1 Like

will be re-engineered in v.1.3.1

2 Likes

Thank you for fixing this. Little thing that makes a BIG difference. :pray:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.