mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 00:20:48 +00:00
dismiss modal when clicking outside of it
This commit is contained in:
parent
7e63c1e752
commit
e490782d41
1 changed files with 1 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div v-if="isShowing" class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity flex items-center justify-center">
|
||||
<div class="flex w-full h-full p-4 overflow-y-auto">
|
||||
<div class="my-auto mx-auto w-full bg-white dark:bg-zinc-900 rounded-lg shadow-xl max-w-2xl">
|
||||
<div v-click-outside="dismiss" class="my-auto mx-auto w-full bg-white dark:bg-zinc-900 rounded-lg shadow-xl max-w-2xl">
|
||||
|
||||
<!-- title -->
|
||||
<div class="p-4 border-b dark:border-zinc-700">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue