Skip to content

Commit

Permalink
fix: WordArt input font-family
Browse files Browse the repository at this point in the history
  • Loading branch information
devlzl committed Feb 11, 2024
1 parent df4a8e3 commit 896031f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/BlockHub/WordArtBlock/WordArt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,19 @@ onMounted(() => {
<input
v-if="editing"
ref="inputRef"
:style="{ fontSize: `75px`, width: '100%', height: '100%', padding: '4px' }"
@blur="save($event)"
@keydown="(event) => event.key === 'Enter' && save(event)"
/>
<canvas v-else ref="canvasRef" :style="{ width: '100%', height: '100%' }"></canvas>
</div>
</template>

<style scoped lang="scss">
input {
width: 100%;
height: 100%;
padding: 4px;
font-family: 'WordArt';
font-size: 75px;
}
</style>

0 comments on commit 896031f

Please sign in to comment.