fix: login modal not visible in small screen
This commit is contained in:
@@ -7,6 +7,7 @@ export {}
|
|||||||
|
|
||||||
declare module '@vue/runtime-core' {
|
declare module '@vue/runtime-core' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
|
AppActionHandler: typeof import('./components/app/ActionHandler.vue')['default']
|
||||||
AppAnnouncement: typeof import('./components/app/Announcement.vue')['default']
|
AppAnnouncement: typeof import('./components/app/Announcement.vue')['default']
|
||||||
AppDeveloperOptions: typeof import('./components/app/DeveloperOptions.vue')['default']
|
AppDeveloperOptions: typeof import('./components/app/DeveloperOptions.vue')['default']
|
||||||
AppFooter: typeof import('./components/app/Footer.vue')['default']
|
AppFooter: typeof import('./components/app/Footer.vue')['default']
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
<template>
|
||||||
|
<AppShortcuts :show="showShortcuts" @close="showShortcuts = false" />
|
||||||
|
<AppShare :show="showShare" @hide-modal="showShare = false" />
|
||||||
|
<FirebaseLogin :show="showLogin" @hide-modal="showLogin = false" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref } from "vue"
|
||||||
|
import { defineActionHandler } from "~/helpers/actions"
|
||||||
|
|
||||||
|
const showShortcuts = ref(false)
|
||||||
|
const showShare = ref(false)
|
||||||
|
const showLogin = ref(false)
|
||||||
|
|
||||||
|
defineActionHandler("flyouts.keybinds.toggle", () => {
|
||||||
|
showShortcuts.value = !showShortcuts.value
|
||||||
|
})
|
||||||
|
|
||||||
|
defineActionHandler("modals.share.toggle", () => {
|
||||||
|
showShare.value = !showShare.value
|
||||||
|
})
|
||||||
|
|
||||||
|
defineActionHandler("modals.login.toggle", () => {
|
||||||
|
showLogin.value = !showLogin.value
|
||||||
|
})
|
||||||
|
</script>
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
:shortcut="['S']"
|
:shortcut="['S']"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
showShortcuts = true
|
invokeAction('flyouts.keybinds.toggle')
|
||||||
hide()
|
hide()
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
:label="`${t('app.invite')}`"
|
:label="`${t('app.invite')}`"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
showShare = true
|
invokeAction('modals.share.toggle')
|
||||||
hide()
|
hide()
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
@@ -154,7 +154,7 @@
|
|||||||
'app.shortcuts'
|
'app.shortcuts'
|
||||||
)} <kbd>${getSpecialKey()}</kbd><kbd>K</kbd>`"
|
)} <kbd>${getSpecialKey()}</kbd><kbd>K</kbd>`"
|
||||||
:icon="IconZap"
|
:icon="IconZap"
|
||||||
@click="showShortcuts = true"
|
@click="invokeAction('flyouts.keybinds.toggle')"
|
||||||
/>
|
/>
|
||||||
<ButtonSecondary
|
<ButtonSecondary
|
||||||
v-if="navigatorShare"
|
v-if="navigatorShare"
|
||||||
@@ -188,13 +188,10 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AppShortcuts :show="showShortcuts" @close="showShortcuts = false" />
|
|
||||||
<AppShare :show="showShare" @hide-modal="showShare = false" />
|
|
||||||
<AppDeveloperOptions
|
<AppDeveloperOptions
|
||||||
:show="showDeveloperOptions"
|
:show="showDeveloperOptions"
|
||||||
@hide-modal="showDeveloperOptions = false"
|
@hide-modal="showDeveloperOptions = false"
|
||||||
/>
|
/>
|
||||||
<FirebaseLogin :show="showLogin" @hide-modal="showLogin = false" />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -218,7 +215,6 @@ import IconGithub from "~icons/lucide/github"
|
|||||||
import IconTwitter from "~icons/lucide/twitter"
|
import IconTwitter from "~icons/lucide/twitter"
|
||||||
import IconUserPlus from "~icons/lucide/user-plus"
|
import IconUserPlus from "~icons/lucide/user-plus"
|
||||||
import IconLock from "~icons/lucide/lock"
|
import IconLock from "~icons/lucide/lock"
|
||||||
import { defineActionHandler } from "~/helpers/actions"
|
|
||||||
import { showChat } from "@modules/crisp"
|
import { showChat } from "@modules/crisp"
|
||||||
import { useSetting } from "@composables/settings"
|
import { useSetting } from "@composables/settings"
|
||||||
import { useI18n } from "@composables/i18n"
|
import { useI18n } from "@composables/i18n"
|
||||||
@@ -227,24 +223,10 @@ import { currentUser$ } from "~/helpers/fb/auth"
|
|||||||
import { TippyComponent } from "vue-tippy"
|
import { TippyComponent } from "vue-tippy"
|
||||||
import SmartItem from "@components/smart/Item.vue"
|
import SmartItem from "@components/smart/Item.vue"
|
||||||
import { getPlatformSpecialKey as getSpecialKey } from "~/helpers/platformutils"
|
import { getPlatformSpecialKey as getSpecialKey } from "~/helpers/platformutils"
|
||||||
|
import { invokeAction } from "@helpers/actions"
|
||||||
|
|
||||||
const t = useI18n()
|
const t = useI18n()
|
||||||
const showShortcuts = ref(false)
|
|
||||||
const showShare = ref(false)
|
|
||||||
const showDeveloperOptions = ref(false)
|
const showDeveloperOptions = ref(false)
|
||||||
const showLogin = ref(false)
|
|
||||||
|
|
||||||
defineActionHandler("flyouts.keybinds.toggle", () => {
|
|
||||||
showShortcuts.value = !showShortcuts.value
|
|
||||||
})
|
|
||||||
|
|
||||||
defineActionHandler("modals.share.toggle", () => {
|
|
||||||
showShare.value = !showShare.value
|
|
||||||
})
|
|
||||||
|
|
||||||
defineActionHandler("modals.login.toggle", () => {
|
|
||||||
showLogin.value = !showLogin.value
|
|
||||||
})
|
|
||||||
|
|
||||||
const EXPAND_NAVIGATION = useSetting("EXPAND_NAVIGATION")
|
const EXPAND_NAVIGATION = useSetting("EXPAND_NAVIGATION")
|
||||||
const SIDEBAR = useSetting("SIDEBAR")
|
const SIDEBAR = useSetting("SIDEBAR")
|
||||||
|
|||||||
@@ -46,6 +46,7 @@
|
|||||||
<AppSidenav />
|
<AppSidenav />
|
||||||
</Pane>
|
</Pane>
|
||||||
</Splitpanes>
|
</Splitpanes>
|
||||||
|
<AppActionHandler />
|
||||||
<AppPowerSearch :show="showSearch" @hide-modal="showSearch = false" />
|
<AppPowerSearch :show="showSearch" @hide-modal="showSearch = false" />
|
||||||
<AppSupport
|
<AppSupport
|
||||||
v-if="mdAndLarger"
|
v-if="mdAndLarger"
|
||||||
|
|||||||
Reference in New Issue
Block a user