Skip to content

Commit

Permalink
fix: inline rendering of display
Browse files Browse the repository at this point in the history
  • Loading branch information
gbicou committed Aug 11, 2023
1 parent a3a5e19 commit d1e5315
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/tiptap-display.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<template>
<v-text-overflow class="display" placement="bottom" :text="text" />
<value-null v-if="!text" />
<v-text-overflow v-else class="tiptap-display" placement="bottom" :text="text" />
</template>

<script setup lang="ts">
Expand Down Expand Up @@ -29,3 +30,11 @@ const text = computed(() => {
return "";
});
</script>

<style lang="scss" scoped>
.tiptap-display {
display: inline-block;
width: 100%;
vertical-align: middle;
}
</style>

0 comments on commit d1e5315

Please sign in to comment.