@huaqiu/dsh-sidebar-entry 0.6.12 → 0.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.mjs +1 -0
- package/package.json +1 -1
- package/src/index.ts +3 -0
package/lib/index.mjs
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -122,6 +122,9 @@ function createEntry(options: SidebarEntryOptions): {
|
|
|
122
122
|
if (count <= 0) {
|
|
123
123
|
badgeSpan?.remove()
|
|
124
124
|
badgeSpan = null
|
|
125
|
+
// The attribute drives badge styling / collapsed-rail layout. Leaving it
|
|
126
|
+
// behind at count 0 kept the row looking badged with no badge in it.
|
|
127
|
+
entry.removeAttribute('data-has-badge')
|
|
125
128
|
return
|
|
126
129
|
}
|
|
127
130
|
if (badgeSpan === null) {
|