Skip to content

Commit

Permalink
use a button for assistant header menu entry
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
  • Loading branch information
julien-nc committed Jan 11, 2024
1 parent 6509e48 commit 0968c6b
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/components/AssistantHeaderMenuEntry.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
<template>
<div id="assistant"
class="header-menu">
<a
href="#"
<NcButton
class="trigger"
type="secondary"
:title="t('assistant', 'Nextcloud Assistant')"
@click="$emit('click')">
<AssistantIcon class="menu-icon" :size="20" />
</a>
</NcButton>
</div>
</template>

<script>
import AssistantIcon from './icons/AssistantIcon.vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
export default {
name: 'AssistantHeaderMenuEntry',
components: {
AssistantIcon,
NcButton,
},
data() {
Expand Down Expand Up @@ -58,6 +61,14 @@ export default {
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
background-color: rgba(0,0,0,0);
border: none;
filter: none !important;
color: var(--color-primary-text) !important;
&:hover {
background-color: rgba(0,0,0,0) !important;
}
.menu-icon {
color: var(--color-primary-text) !important;
}
Expand Down

0 comments on commit 0968c6b

Please sign in to comment.