Skip to content

Commit

Permalink
2.3.2 Compatibility fix for editing toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
TfT Hacker committed Dec 5, 2024
1 parent ef3455d commit 68cc752
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# # 2.3.1
# 2.3.2
- Fix: When using editing toolbar configured for showing toolbar at top, the SNW reference counter overlapped. The CSS was mofiied to prevent this. [#155](https://github.com/TfTHacker/obsidian42-strange-new-worlds/issues/155).

# 2.3.1
- Change: if a link is the only link in the vault to a destination (thus the reference count is 1), the reference counter will not be shown next to the link, regardless of the minimum threshold count set in settings. This makes sense. If the link is used once, its obvious without the counter, and the counter simply stating the link has one reference was redudant and annoying to many users.

# 2.3.0
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian42-strange-new-worlds",
"name": "Strange New Worlds",
"version": "2.3.1",
"version": "2.3.2",
"minAppVersion": "1.7.2",
"description": "Help see how your vault is interconnected with visual indicators.",
"author": "TfTHacker",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian42-strange-new-worlds",
"version": "2.3.1",
"version": "2.3.2",
"description": "Revealing networked thought and the strange new worlds created by your vault",
"scripts": {
"dev": "node --no-warnings esbuild.config.mjs",
Expand Down
17 changes: 14 additions & 3 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,20 @@ div:has(> .snw-reference),
z-index: 1000;
}

/* Modification for when Edting Toolbar plugin is used */
.view-content:has(.top.cMenuToolbarDefaultAesthetic),
.view-content:has(.top.cMenuToolbarTinyAesthetic) {
.snw-header-count-wrapper {
top: 80px;
}
}

.view-content:has(.top.cMenuToolbarGlassAesthetic) {
.snw-header-count-wrapper {
top: 70px;
}
}

.snw-header-count {
text-align: center;
}
Expand Down Expand Up @@ -313,8 +327,6 @@ div:has(> .snw-reference),
font-weight: var(--nav-item-weight);
}



.snw-sort-dropdown-list-item {
padding-left: 5px;
}
Expand All @@ -330,7 +342,6 @@ div:has(> .snw-reference),
}



/* prevent printing of reference numbers */
@media print {
.snw-reference {
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"2.2.0": "1.7.2",
"2.2.1": "1.7.2",
"2.3.0": "1.7.2",
"2.3.1": "1.7.2"
"2.3.1": "1.7.2",
"2.3.2": "1.7.2"
}

0 comments on commit 68cc752

Please sign in to comment.