Fix styling bug in text element

This commit is contained in:
Ramon Wenger 2022-02-01 17:10:32 +01:00
parent c177097234
commit 228def84b4
1 changed files with 3 additions and 4 deletions

View File

@ -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