Skip to content

Commit 26d491c

Browse files
committed
update word count position
1 parent 7ad6306 commit 26d491c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ declare module 'vue' {
1616
'IMdi:spellcheck': typeof import('~icons/mdi/spellcheck')['default']
1717
'IMdi:themeLightDark': typeof import('~icons/mdi/theme-light-dark')['default']
1818
'IRi:settings3Line': typeof import('~icons/ri/settings3-line')['default']
19+
NCard: typeof import('naive-ui')['NCard']
20+
NDrawer: typeof import('naive-ui')['NDrawer']
21+
NDrawerContent: typeof import('naive-ui')['NDrawerContent']
1922
NH2: typeof import('naive-ui')['NH2']
2023
NInput: typeof import('naive-ui')['NInput']
2124
NMessageProvider: typeof import('naive-ui')['NMessageProvider']

src/components/Content.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ appWindow.listen("tauri://close-requested", async () => {
146146
})
147147
148148
await shortcutRegister()
149-
150-
// TODO Fix word count placement, when scrolling it is stuck in an awkward position
151149
</script>
152150

153151
<template>
@@ -158,7 +156,7 @@ await shortcutRegister()
158156
@changeSpellcheck="changeSpellcheck()"
159157
/>
160158
<div :class="{ 'dark': store.theme === 'dark' }">
161-
<div class="fixed right-1 mt-1 z-20 text-size-[12px] opacity-70 text-dark-900 dark:text-light-500 transition-colors duration-150 ease-linear">{{ store.wordCount }}</div>
159+
<div class="absolute right-1 mt-1 z-20 text-size-[12px] opacity-70 text-dark-900 dark:text-light-500 transition-colors duration-150 ease-linear">{{ store.wordCount }}</div>
162160
<div v-show="settings" class="absolute z-10 w-8/10 h-20px bottom-100px transform translate-x-5vh">
163161
<n-h2 class="text-dark-900 dark:text-light-50">Opacity</n-h2>
164162
<n-slider :theme-overrides="store.themeOverrides" v-model:value="store.opacity" :step="1"></n-slider>

0 commit comments

Comments
 (0)