Skip to content

Commit

Permalink
Fix read part
Browse files Browse the repository at this point in the history
  • Loading branch information
emptynick committed Aug 15, 2020
1 parent e704295 commit 9c46d0e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion resources/dist/tiptap.js

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions resources/src/components/Formfield/Read.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
<template>
<div v-html="translate(data, !translatable)">
<div v-html="translate(data, !translatable)" class="tiptap">
</div>
</template>

<script>
export default {
props: ['options', 'data', 'translatable'],
};
</script>
</script>

<style lang="scss">
.tiptap {
height: 100%;
width: 100%;
&:focus {
outline: none !important;
}
li > p:first-child {
display: inline;
}
}
</style>
4 changes: 1 addition & 3 deletions resources/src/components/TipTap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,13 @@ export default {
};
</script>

<style lang="scss" scoped>
<style lang="scss">
.tiptap {
.content {
min-height: 16rem;
}
}
</style>
<style lang="scss">
.ProseMirror {
height: 100%;
width: 100%;
Expand Down

0 comments on commit 9c46d0e

Please sign in to comment.