From 5f32c457360cd8f30e3dadd22e61bdaf46dc39ef Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 9 May 2023 09:55:11 +0530 Subject: [PATCH] fix(ui/ux): move back button to the left - add forward button --- src/components/BackLink.vue | 42 ---------------- src/components/FormContainer.vue | 2 +- src/components/PageHeader.vue | 36 ++++++++------ src/components/PageHeaderNavGroup.vue | 70 +++++++++++++++++++++++++++ src/components/SearchBar.vue | 16 +----- src/router.ts | 8 +++ src/utils/refs.ts | 6 ++- 7 files changed, 107 insertions(+), 73 deletions(-) delete mode 100644 src/components/BackLink.vue create mode 100644 src/components/PageHeaderNavGroup.vue diff --git a/src/components/BackLink.vue b/src/components/BackLink.vue deleted file mode 100644 index 8ed0d3b4..00000000 --- a/src/components/BackLink.vue +++ /dev/null @@ -1,42 +0,0 @@ - - diff --git a/src/components/FormContainer.vue b/src/components/FormContainer.vue index 0bcf5981..d9ea48df 100644 --- a/src/components/FormContainer.vue +++ b/src/components/FormContainer.vue @@ -14,7 +14,7 @@ - +
-

- {{ title }} -

-
- + + +

+ {{ title }} +

+ + +
+ +
+ +
-
- -
@@ -37,18 +46,15 @@ import { languageDirectionKey } from 'src/utils/injectionKeys'; import { showSidebar } from 'src/utils/refs'; import { defineComponent, inject, Transition } from 'vue'; -import BackLink from './BackLink.vue'; -import SearchBar from './SearchBar.vue'; +import PageHeaderNavGroup from './PageHeaderNavGroup.vue'; export default defineComponent({ props: { title: { type: String, default: '' }, - backLink: { type: Boolean, default: true }, - hideSearch: { type: Boolean, default: false }, border: { type: Boolean, default: true }, searchborder: { type: Boolean, default: true }, }, - components: { BackLink, SearchBar, Transition }, + components: { Transition, PageHeaderNavGroup }, setup() { return { showSidebar, languageDirection: inject(languageDirectionKey) }; }, diff --git a/src/components/PageHeaderNavGroup.vue b/src/components/PageHeaderNavGroup.vue new file mode 100644 index 00000000..6a1311e8 --- /dev/null +++ b/src/components/PageHeaderNavGroup.vue @@ -0,0 +1,70 @@ + + + + diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue index 58cbb494..9e53d0a5 100644 --- a/src/components/SearchBar.vue +++ b/src/components/SearchBar.vue @@ -1,12 +1,8 @@