Skip to content

Commit ac9f351

Browse files
committed
improve(pages): turn horizontal pages into links
1 parent 3e4bd6c commit ac9f351

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

apps/client/src/layouts/PagesLayout/MainContent/DisplayUI/DisplayHorizontalPage.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<template>
2-
<div
2+
<a
33
class="horizontal-page"
44
:class="{ active }"
5-
@click="internals.pages.goToPage(pageId)"
5+
:href="`/pages/${pageId}`"
6+
@click.prevent.stop="internals.pages.goToPage(pageId)"
67
>
78
<div class="group-title">
89
{{ groupNameInfo.text }}
@@ -17,7 +18,7 @@
1718
>
1819
{{ pageTitleInfo.text }}
1920
</div>
20-
</div>
21+
</a>
2122
</template>
2223

2324
<script setup lang="ts">

0 commit comments

Comments
 (0)