Node.js based forum software built for the modern web
feat: show full category path on hover in category dropdowns (#14686)
Click&Go0ea5c3dcf680
diff --git a/src/views/admin/partials/category/selector-dropdown-content.tpl b/src/views/admin/partials/category/selector-dropdown-content.tplindex d6b1a1f11e..db3ffcae9a 100644--- a/src/views/admin/partials/category/selector-dropdown-content.tpl+++ b/src/views/admin/partials/category/selector-dropdown-content.tpl@@ -26,7 +26,7 @@{{{each categoryItems}}}<li role="presentation" class="category {{{ if ./disabledClass }}}disabled {{{ end }}}" data-cid="{./cid}" data-name="{./name}" data-parent-cid="{./parentCid}"><a href="#" class="dropdown-item rounded-1" role="menu-item">- <span component="category-markup" style="{{{ if ./match }}}font-weight: bold;{{{end}}} margin-left: calc({./depth} * 24px);">+ <span component="category-markup" style="{{{ if ./match }}}font-weight: bold;{{{end}}} margin-inline-start: calc({./depth} * 24px);"><div class="category-item d-inline-flex align-items-center gap-1">{{{ if ./icon }}}{{buildCategoryIcon(@value, "24px", "rounded-circle")}}diff --git a/src/views/partials/category/filter-dropdown-content.tpl b/src/views/partials/category/filter-dropdown-content.tplindex 9d8e339663..4a5b72b671 100644--- a/src/views/partials/category/filter-dropdown-content.tpl+++ b/src/views/partials/category/filter-dropdown-content.tpl@@ -30,7 +30,7 @@{{{each categoryItems}}}<li role="presentation" class="category {{{ if ./disabledClass }}}disabled{{{ end }}}" data-cid="{./cid}" data-parent-cid="{./parentCid}" data-name="{./name}"><a class="dropdown-item rounded-1 d-flex align-items-center gap-2 {{{ if ./disabledClass }}}disabled{{{ end }}}" role="menuitem" href="#">- <span component="category-markup" class="flex-grow-1" style="{{{ if ./match }}}font-weight: bold;{{{end}}} margin-left: calc({./depth} * 24px);">+ <span component="category-markup" class="flex-grow-1" style="{{{ if ./match }}}font-weight: bold;{{{end}}} margin-inline-start: calc({./depth} * 24px);"><div class="category-item d-inline-flex align-items-center gap-1">{{{ if ./icon }}}{{buildCategoryIcon(@value, "24px", "rounded-circle")}}diff --git a/src/views/partials/category/selector-dropdown-content.tpl b/src/views/partials/category/selector-dropdown-content.tplindex 8fc7cf7f3f..da90323c16 100644--- a/src/views/partials/category/selector-dropdown-content.tpl+++ b/src/views/partials/category/selector-dropdown-content.tpl@@ -24,7 +24,7 @@{{{ each categoryItems }}}<li role="presentation" class="category {{{ if ./disabledClass }}}disabled {{{ end }}}" data-cid="{./cid}" data-name="{./name}" data-parent-cid="{./parentCid}"><a class="dropdown-item rounded-1 {{{ if ./disabledClass }}}disabled{{{ end }}}" role="menuitem" href="#">- <span component="category-markup" style="{{{ if ./match }}}font-weight: bold;{{{end}}} margin-left: calc({./depth} * 24px);">+ <span component="category-markup" style="{{{ if ./match }}}font-weight: bold;{{{end}}} margin-inline-start: calc({./depth} * 24px);"><span class="category-item d-inline-flex align-items-center gap-1">{{{ if ./icon }}}{{buildCategoryIcon(@value, "24px", "rounded-circle")}}