fix: 🐛 plus button in reaction settings

This commit is contained in:
ThatOneCalculator 2023-07-11 20:36:15 -07:00
parent cfb46f2775
commit 2a86a8ad75
No known key found for this signature in database
GPG Key ID: 8703CACD01000000
3 changed files with 11 additions and 17 deletions

View File

@ -1,6 +1,6 @@
{
"name": "calckey",
"version": "14.0.0-dev63",
"version": "14.0.0-dev68",
"codename": "aqua",
"repository": {
"type": "git",

View File

@ -154,9 +154,7 @@ function showFileMenu(file, ev: MouseEvent) {
},
},
],
(ev.currentTarget ?? ev.target ?? undefined) as
| HTMLElement
| undefined,
(ev.currentTarget ?? ev.target ?? undefined) as HTMLElement | undefined,
);
}
</script>

View File

@ -30,12 +30,10 @@
class="emoji"
/>
</div>
<template #footer>
<button class="_button add" @click="chooseEmoji">
<i class="ph-plus ph-bold ph-lg"></i>
</button>
</template>
</VueDraggable>
<button class="_button add" @click="chooseEmoji">
<i class="ph-plus ph-bold ph-lg"></i>
</button>
</div>
<template #caption
>{{ i18n.ts.reactionSettingDescription2 }}
@ -244,10 +242,6 @@ const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.reaction,
icon: "ph-smiley ph-bold ph-lg",
action: {
icon: "ph-eye ph-bold ph-lg",
handler: preview,
},
});
</script>
@ -261,10 +255,12 @@ definePageMetadata({
padding: 8px;
cursor: move;
}
}
> .add {
display: inline-block;
padding: 8px;
}
.add {
display: inline-block;
padding: 8px;
margin-left: 12px;
margin-bottom: 12px;
}
</style>