Skip to content

Commit 5d3d7d5

Browse files
committed
fix the performance
1 parent c68e86b commit 5d3d7d5

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

app/frontend/editor/components/page/list/list-item.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div
33
class="flex items-center py-3 pl-6 pr-2 hover:bg-editor-primary hover:bg-opacity-5 transition-colors duration-200"
4+
@mouseenter="hovered = true"
45
>
56
<router-link
67
:to="{ name: 'editPage', params: { pageId: page.path } }"
@@ -16,7 +17,13 @@
1617
/>
1718
</router-link>
1819
<div class="ml-auto pr-2 relative">
19-
<uikit-dropdown v-on="$listeners" popoverClass="tooltip-menu">
20+
<button
21+
class="px-1 py-1 rounded-full bg-editor-primary bg-opacity-0 hover:text-gray-900 text-gray-600 focus:outline-none hover:bg-opacity-10 transition-colors duration-200"
22+
v-if="!hovered"
23+
>
24+
<uikit-icon name="ri-more-2-fill" size="1.25rem" />
25+
</button>
26+
<uikit-dropdown v-on="$listeners" popoverClass="tooltip-menu" v-else>
2027
<template v-slot:button>
2128
<button
2229
class="px-1 py-1 rounded-full bg-editor-primary bg-opacity-0 hover:text-gray-900 text-gray-600 focus:outline-none hover:bg-opacity-10 transition-colors duration-200"
@@ -85,6 +92,11 @@ export default {
8592
props: {
8693
page: { type: Object, required: true },
8794
},
95+
data() {
96+
return {
97+
hovered: false,
98+
}
99+
},
88100
computed: {
89101
isIndexPage() {
90102
return this.services.page.isIndex(this.page)

0 commit comments

Comments
 (0)