diff --git a/app/web/views/components/icons/icons.go b/app/web/views/components/icons/icons.go index 9a22b8c..5b4d4d1 100644 --- a/app/web/views/components/icons/icons.go +++ b/app/web/views/components/icons/icons.go @@ -31,8 +31,9 @@ const ( LimitsIcon = "ph ph-prohibit text-brand" SwitchIcon = "ph ph-arrows-left-right text-brand" - NavUpIcon = "ph ph-caret-up" - NavDownIcon = "ph ph-caret-down" + NavUpIcon = "ph ph-caret-up" + NavDownIcon = "ph ph-caret-down" + NavUpDownIcon = "ph ph-caret-up-down" SourceGitIcon = "git.svg" SourceDatabaseIcon = "ph ph-database text-sky-700" diff --git a/app/web/views/shared/breadcrumb.templ b/app/web/views/shared/breadcrumb.templ index f07f495..2c13efd 100644 --- a/app/web/views/shared/breadcrumb.templ +++ b/app/web/views/shared/breadcrumb.templ @@ -102,7 +102,11 @@ templ breadCrumb(crumbs []*bcItem, isHTMLRender bool) { isProjectDropdownOpen:false, isEnvironmentDropdownOpen:false, isApplicationDropdownOpen:false, - select(prop, value) { + select(prop, value, onlyMe) { + if (onlyMe) { + this[prop] = value; + return; + } this.closeAll() this[prop] = value; }, @@ -114,27 +118,11 @@ templ breadCrumb(crumbs []*bcItem, isHTMLRender bool) { }" x-cloak > -
    +
      for _, crumb := range crumbs { -
    1. +
    2. @breadCrumbItem(crumb, crumb.identifier, getDropdownIdentifier(crumb.identifier)) - - - + /
    3. }
    @@ -144,29 +132,19 @@ templ breadCrumb(crumbs []*bcItem, isHTMLRender bool) { templ breadCrumbItem(crumb *bcItem, identifier bcIdentifier, isDropDownOpen string) { if crumb.listUrl != "" || crumb.identifier == bcIdentifierHome { - + { crumb.name } if crumb.listUrl != "" { - - + + @breadCrumbDropdown(crumb, identifier, isDropDownOpen) @@ -180,8 +158,8 @@ templ breadCrumbItem(crumb *bcItem, identifier bcIdentifier, isDropDownOpen stri templ breadCrumbDropdown(crumb *bcItem, identifier bcIdentifier, isDropDownOpen string) {