From 7cfb96bd09a01a5ae753f8f6dc91fc65e648b55d Mon Sep 17 00:00:00 2001 From: Philipp Pracht Date: Thu, 14 Oct 2021 19:30:06 +0200 Subject: [PATCH] Breadcrumb container (#2324) experimental mvp --- core/src/App.html | 33 ++++- core/src/Modal.html | 8 ++ core/src/SplitView.html | 4 + core/src/navigation/Breadcrumb.html | 189 ++++++++++++++++++++++++++++ core/src/navigation/LeftNav.html | 4 + 5 files changed, 236 insertions(+), 2 deletions(-) create mode 100644 core/src/navigation/Breadcrumb.html diff --git a/core/src/App.html b/core/src/App.html index ce1b4981ed..0bf622436a 100644 --- a/core/src/App.html +++ b/core/src/App.html @@ -96,12 +96,19 @@ bind:luigiCustomSearchRenderer__slot burgerTooltip="{burgerTooltip}" /> + {#if !(hideNav)} - {#if !(hideNav||hideSideNav)} + {#if breadcrumbsEnabled} + + {/if} {/if} {#if !(hideNav||hideSideNav)} { const iframeConf = config.iframe.luigi; @@ -1608,6 +1623,10 @@ }); afterUpdate(() => {}); + + beforeUpdate(() => { + breadcrumbsEnabled = GenericHelpers.requestExperimentalFeature('breadcrumbs'); + }); diff --git a/core/src/navigation/LeftNav.html b/core/src/navigation/LeftNav.html index 499494ee0e..78b9f5960a 100644 --- a/core/src/navigation/LeftNav.html +++ b/core/src/navigation/LeftNav.html @@ -744,6 +744,10 @@ display: none; } + :global(.lui-breadcrumb) .fd-app__sidebar { + top: calc(#{$topNavHeight} + var(--luigi__breadcrumb--height)); + } + .fd-app__sidebar { position: fixed; top: $topNavHeight;