diff --git a/client/web/compose/src/components/PageBlocks/Navigation/Base.vue b/client/web/compose/src/components/PageBlocks/Navigation/Base.vue index b67c4f0a9..b2ab07d52 100644 --- a/client/web/compose/src/components/PageBlocks/Navigation/Base.vue +++ b/client/web/compose/src/components/PageBlocks/Navigation/Base.vue @@ -20,14 +20,15 @@ :disabled="!navItem.options.enabled" :style="{ order: index, color: navItem.options.textColor, background: navItem.options.backgroundColor, justifyContent: options.display.alignment }" :link-attrs="{ style: `color: ${navItem.options.textColor}` }" + :href="generateHrefAttributeLink(navItem)" + :to="generateToAttributeLink(navItem)" :target="selectTargetOption(navItem.options.item.target)" - :href="redirectForNavItem(navItem)" class="d-flex align-items-center" > + + + diff --git a/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Dropdown.vue b/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Dropdown.vue index a6f7fc1de..8f830ff9c 100644 --- a/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Dropdown.vue +++ b/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Dropdown.vue @@ -24,7 +24,7 @@ @@ -32,23 +32,10 @@ -
+
{{ $t("navigation.dropdownItems") }}
- - - - {{ $t("navigation.add") }} -
@@ -120,6 +107,21 @@
+ +
+ + + {{ $t("navigation.addDropdown") }} + +
@@ -146,3 +148,11 @@ export default { }, } + + diff --git a/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Text.vue b/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Text.vue index 4d890acf5..e6ecc0615 100644 --- a/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Text.vue +++ b/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Text.vue @@ -19,3 +19,11 @@ export default { extends: base, } + + diff --git a/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Url.vue b/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Url.vue index 0328bbed5..8975e9634 100644 --- a/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Url.vue +++ b/client/web/compose/src/components/PageBlocks/Navigation/NavTypes/Url.vue @@ -45,3 +45,11 @@ export default { }, } + + diff --git a/client/web/compose/src/components/PageBlocks/TabsConfigurator.vue b/client/web/compose/src/components/PageBlocks/TabsConfigurator.vue index 29e6203c0..dcc26c3bf 100644 --- a/client/web/compose/src/components/PageBlocks/TabsConfigurator.vue +++ b/client/web/compose/src/components/PageBlocks/TabsConfigurator.vue @@ -84,20 +84,14 @@ +
+
{{ $t('tabs.title') }}
- - - {{ $t('tabs.addTab') }} -
+ + {{ $t('tabs.addTab') }} + + = Object.freeze({ display: { - appearance: 'tabs', + appearance: 'pills', alignment: 'center', - fillJustify: 'justify', + fillJustify: 'fill', }, navigationItems: [], magnifyOption: '', diff --git a/locale/en/corteza-webapp-compose/block.yaml b/locale/en/corteza-webapp-compose/block.yaml index 0f3102ba5..ce2eb4145 100644 --- a/locale/en/corteza-webapp-compose/block.yaml +++ b/locale/en/corteza-webapp-compose/block.yaml @@ -562,6 +562,7 @@ comment: footnote: 'Field value will be used as reference' navigation: chart: Charts + noNavigationItems: No navigation item configured label: Navigation displayOptions: Display options appearance: Appearance @@ -577,7 +578,8 @@ navigation: background: Background url: URL drop: Dropdown position - add: Add + add: Add navigation item + addDropdown: Add dropdown item composePage: Compose page tabs: Tabs pills: Pills