-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sebastian Hilger
committed
Oct 14, 2018
1 parent
da949a2
commit f4d4189
Showing
5 changed files
with
84 additions
and
5 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,41 @@ | ||
<template> | ||
<panel-item :field="field" /> | ||
<div class="tiptap-detail-field py-4"> | ||
<truncate | ||
clamp="Show More" | ||
:length="200" | ||
less="Show Less" | ||
type="html" | ||
:text="field.value" | ||
> | ||
|
||
</truncate> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import truncate from 'vue-truncate-collapsed' | ||
export default { | ||
props: ['resource', 'resourceName', 'resourceId', 'field'], | ||
components: { | ||
truncate, | ||
}, | ||
} | ||
</script> | ||
|
||
<style> | ||
.tiptap-detail-field h1, .tiptap-detail-field h2, .tiptap-detail-field h3, .tiptap-detail-field h4, .tiptap-detail-field h5, .tiptap-detail-field h6 { | ||
font-size: 1em; | ||
margin-bottom: 0.35em; | ||
} | ||
.tiptap-detail-field a { | ||
color: var(--primary); | ||
} | ||
.tiptap-detail-field p, ul, ol, blockquote, pre { | ||
margin-bottom: 0.7em; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,43 @@ | ||
<template> | ||
<span>{{ field.value }}</span> | ||
<div class="tiptap-index-field py-4"> | ||
<truncate | ||
clamp="Show More" | ||
:length="200" | ||
less="Show Less" | ||
type="html" | ||
:text="field.value" | ||
> | ||
|
||
</truncate> | ||
</div> | ||
</template> | ||
|
||
|
||
|
||
<script> | ||
import truncate from 'vue-truncate-collapsed' | ||
export default { | ||
props: ['resourceName', 'field'], | ||
components: { | ||
truncate, | ||
}, | ||
} | ||
</script> | ||
|
||
<style> | ||
.tiptap-index-field h1, .tiptap-index-field h2, .tiptap-index-field h3, .tiptap-index-field h4, .tiptap-index-field h5, .tiptap-index-field h6 { | ||
font-size: 1em; | ||
margin-bottom: 0.35em; | ||
} | ||
.tiptap-index-field a { | ||
color: var(--primary); | ||
} | ||
.tiptap-index-field p, ul, ol, blockquote, pre { | ||
margin-bottom: 0.7em; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters