Skip to content

Commit

Permalink
[beta] v23. Reimplemented back / forward buttons (like internet browser)
Browse files Browse the repository at this point in the history
  • Loading branch information
DIDIRUS4 committed Feb 24, 2024
1 parent 8b5c270 commit 946318d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion theseus_gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"version": "0.6.3",
"patch_version": "23 • Beta",
"development_build": true,
"development_build": false,
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
39 changes: 36 additions & 3 deletions theseus_gui/src/components/ui/Breadcrumbs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
v-if="props.afterLogo && breadcrumbContext.routeBreadcrumbs.value?.length > 0"
class="breadcrumbs__item"
>
<ChevronRightIcon class="chevron" />
<Button class="chevron-btn" @click="$router.back()">
<ChevronLeftIcon />
</Button>
<Button class="chevron-btn" @click="$router.forward()">
<ChevronRightIcon />
</Button>
</div>
<div
v-for="breadcrumb in breadcrumbContext.routeBreadcrumbs.value"
Expand All @@ -29,7 +34,7 @@
</template>

<script setup>
import { ChevronRightIcon } from 'omorphia'
import { ChevronRightIcon, ChevronLeftIcon } from 'omorphia'
import { useBreadcrumbs, useBreadcrumbContext } from '@/store/breadcrumbs'
import { useRoute } from 'vue-router'
Expand Down Expand Up @@ -58,6 +63,31 @@ const breadcrumbName = (bcn) => {
</script>
<style scoped lang="scss">
.chevron-btn {
color: #3e8cde;
border-radius: var(--radius-md);
border: var(--color-button-bg);
//padding: var(--gap-sm) var(--gap-lg);
padding: 0.25rem;
background-color: rgba(0, 0, 0, 0.0);
text-decoration: none;
text-shadow: 0 0 4px rgba(79, 173, 255, 0.5),
0 0 8px rgba(14, 98, 204, 0.5),
0 0 12px rgba(122, 31, 199, 0.5);
transition: color 0.35s ease;
display: flex;
flex-direction: row;
align-items: center;
margin: 0.25rem;
}
.chevron-btn:hover,
.chevron-btn:focus,
.chevron-btn:active {
color: #10fae5;
text-shadow: #26065e;
}
.breadcrumbs {
display: flex;
flex-direction: row;
Expand All @@ -69,7 +99,10 @@ const breadcrumbName = (bcn) => {
margin: auto 0;
.chevron {
margin: auto 0.5rem;
margin: 0.15rem;
}
.chevron-button {
opacity: 0;
}
a {
Expand Down
2 changes: 1 addition & 1 deletion theseus_gui/src/pages/instance/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
</div>
</div>
<ContextMenu ref="options" @option-clicked="handleOptionsClick">
<template #play> <PlayIcon /> {{t('Instance.Index.PLay')}} </template>
<template #play> <PlayIcon /> {{t('Instance.Index.Play')}} </template>
<template #stop> <StopCircleIcon /> {{t('Instance.Index.Stop')}} </template>
<template #add_content> <PlusIcon /> {{t('Instance.Index.AddContent')}} </template>
<template #edit> <EditIcon /> {{t('Instance.Index.Edit')}} </template>
Expand Down

0 comments on commit 946318d

Please sign in to comment.