Skip to content

Commit 5d757a5

Browse files
authored
Merge pull request #2 from talovicnedim/master
DefailField.vue should render HTML
2 parents 79d7d98 + 6acfb5a commit 5d757a5

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

dist/css/field.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
.trumbowyg-box.trumbowyg{margin:0}
1+
.trumbowyg-box.trumbowyg{margin:0}.trumbowyg-details p:not(:last-child){margin-bottom:15px}

dist/js/field.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/js/components/DetailField.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
22
<panel-item :field="field">
3+
<template slot="value">
4+
<div class="trumbowyg-details" v-html="field.value"></div>
5+
</template>
36
</panel-item>
47
</template>
58

resources/sass/field.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
// Nova Tool CSS
22
.trumbowyg-box.trumbowyg {
33
margin: 0;
4-
}
4+
}
5+
6+
.trumbowyg-details p:not(:last-child) {
7+
margin-bottom: 15px;
8+
}

0 commit comments

Comments
 (0)