fix transparent logout button
This commit is contained in:
parent
7c2f3cad8c
commit
730cb4b31a
1 changed files with 14 additions and 7 deletions
|
|
@ -1,8 +1,8 @@
|
|||
<template>
|
||||
|
||||
|
||||
<!-- Settings icon. -->
|
||||
<button
|
||||
class="settingsIcon"
|
||||
<button
|
||||
class="settingsIcon"
|
||||
v-if="toggleSettings == false"
|
||||
@click="onActive"
|
||||
>
|
||||
|
|
@ -13,13 +13,15 @@
|
|||
|
||||
<!-- Settings div. -->
|
||||
<div id="settings" v-show="toggleSettings">
|
||||
<button
|
||||
</div>
|
||||
|
||||
<button
|
||||
v-if="toggleSettings"
|
||||
class="settingsOption"
|
||||
@click="onLogout"
|
||||
>
|
||||
Logout
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
|
|
@ -27,7 +29,7 @@
|
|||
|
||||
import { defineComponent, ref } from "vue";
|
||||
import { useIpc } from "@/modules/ipc";
|
||||
import { logoutRequest } from '@/modules/message';
|
||||
import { logoutRequest } from '@/modules/message';
|
||||
|
||||
export default defineComponent({
|
||||
name: "Settings",
|
||||
|
|
@ -58,7 +60,7 @@
|
|||
}
|
||||
|
||||
return {
|
||||
onActive,
|
||||
onActive,
|
||||
toggleSettings,
|
||||
onLogout
|
||||
}
|
||||
|
|
@ -141,6 +143,11 @@
|
|||
border: none;
|
||||
outline: none;
|
||||
text-decoration: none;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.settingsOption:hover {
|
||||
|
|
|
|||
Loading…
Reference in a new issue