Skip to content

Commit 978e744

Browse files
Optimization: expand NoteAbstractItem click area
1 parent 65d919e commit 978e744

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/vuepress-theme-reco/components/NoteAbstractItem.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div
3-
class="abstract-item">
3+
class="abstract-item"
4+
@click="$router.push(item.path)">
45
<i v-if="item.frontmatter.sticky" class="iconfont reco-sticky"></i>
56
<div class="title">
67
<i v-if="item.frontmatter.keys" class="iconfont reco-lock"></i>
@@ -36,6 +37,7 @@ export default {
3637
box-sizing: border-box;
3738
transition all .3s
3839
background-color var(--background-color)
40+
cursor: pointer
3941
.reco-sticky
4042
position absolute
4143
top 0

0 commit comments

Comments
 (0)