Browse Source

feat(gui-v2): disable user-select on menus

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
pull/2716/head
Braks 2 years ago committed by Pranav C
parent
commit
15d025de00
  1. 2
      packages/nc-gui-v2/components/general/Language.vue
  2. 2
      packages/nc-gui-v2/components/general/Sponsors.vue
  3. 4
      packages/nc-gui-v2/pages/projects/index.vue

2
packages/nc-gui-v2/components/general/Language.vue

@ -34,7 +34,7 @@ onMounted(() => {
</script> </script>
<template> <template>
<v-menu> <v-menu class="select-none">
<template #activator="{ props }"> <template #activator="{ props }">
<MaterialSymbolsTranslate class="md:text-xl cursor-pointer" @click="props.onClick" /> <MaterialSymbolsTranslate class="md:text-xl cursor-pointer" @click="props.onClick" />
</template> </template>

2
packages/nc-gui-v2/components/general/Sponsors.vue

@ -21,7 +21,7 @@ const { nav = false } = defineProps<Props>()
</v-card-text> </v-card-text>
<v-card-actions class="justify-center"> <v-card-actions class="justify-center">
<v-btn color="primary" class="mt-2"> <v-btn color="primary">
<MdiHeartsCard class="text-red-500 mr-2" /> <MdiHeartsCard class="text-red-500 mr-2" />
{{ $t('activity.sponsorUs') }} {{ $t('activity.sponsorUs') }}
</v-btn> </v-btn>

4
packages/nc-gui-v2/pages/projects/index.vue

@ -39,10 +39,10 @@ const navDrawerOptions = [
<v-navigation-drawer width="300"> <v-navigation-drawer width="300">
<div class="flex flex-col h-full"> <div class="flex flex-col h-full">
<div class="flex-1 flex flex-col gap-2 p-4"> <div class="flex-1 flex flex-col gap-2 p-4">
<v-menu> <v-menu class="select-none">
<template #activator="{ props }"> <template #activator="{ props }">
<div <div
class="mr-auto flex items-center gap-2 leading-8 cursor-pointer rounded-full border-1 border-gray-300 px-5 py-2 shadow-md prose-lg font-semibold hover:bg-gray-200/20" class="mr-auto select-none flex items-center gap-2 leading-8 cursor-pointer rounded-full border-1 border-gray-300 px-5 py-2 shadow-md prose-lg font-semibold hover:bg-gray-200/20"
@click="props.onClick" @click="props.onClick"
> >
<MdiPlus class="text-primary text-2xl" /> <MdiPlus class="text-primary text-2xl" />

Loading…
Cancel
Save