Fix styling bug in text element
This commit is contained in:
parent
c177097234
commit
228def84b4
|
|
@ -7,21 +7,20 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {sanitize} from '@/helpers/text';
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['value'],
|
props: ['value'],
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
sanitizedText() {
|
sanitizedText() {
|
||||||
return sanitize(this.value.text);
|
// todo: we can't just sanitize, because there are some elements in there that come from the server
|
||||||
|
return this.value.text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "@/styles/_variables.scss";
|
@import "~styles/_variables.scss";
|
||||||
|
|
||||||
.text-block {
|
.text-block {
|
||||||
margin-bottom: $medium-spacing; // if calc is not supported
|
margin-bottom: $medium-spacing; // if calc is not supported
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue