FreeDATA/gui_vue/src/components/chat_messages_action_menu.vue

49 lines
1,013 B
Vue
Raw Normal View History

2023-09-21 12:17:03 +00:00
<template>
<div class="message-actions-menu">
<!-- Add your action buttons here (e.g., Delete, Copy, Quote) -->
<button @click="onDelete">Delete</button>
<button @click="onCopy">Copy</button>
<button @click="onQuote">Quote</button>
</div>
</template>
<script>
export default {
methods: {
onDelete() {
// Implement delete action
2023-10-03 13:15:17 +00:00
this.$emit("delete");
2023-09-21 12:17:03 +00:00
},
onCopy() {
// Implement copy action
2023-10-03 13:15:17 +00:00
this.$emit("copy");
2023-09-21 12:17:03 +00:00
},
onQuote() {
// Implement quote action
2023-10-03 13:15:17 +00:00
this.$emit("quote");
2023-09-21 12:17:03 +00:00
},
},
};
</script>
<style scoped>
/* Style the message actions menu as needed */
.message-actions-menu {
position: absolute;
top: 50%;
transform: translateY(-50%);
display: none; /* Initially hidden */
/* Add styling for buttons and menu */
}
/* Style individual action buttons */
.message-actions-menu button {
/* Add button styles here */
}
/* Style menu display on hover */
.card:hover .message-actions-menu {
display: block;
}
</style>