Commit 82f97307 authored by Fatih Acet's avatar Fatih Acet

MarkdownField: Add extra prop to make spacing classes optional.

parent 0f6ecaa1
...@@ -14,6 +14,11 @@ ...@@ -14,6 +14,11 @@
type: String, type: String,
required: true, required: true,
}, },
addSpacingClasses: {
type: Boolean,
required: false,
default: true,
},
}, },
data() { data() {
return { return {
...@@ -74,7 +79,8 @@ ...@@ -74,7 +79,8 @@
<template> <template>
<div <div
class="md-area prepend-top-default append-bottom-default js-vue-markdown-field" class="md-area js-vue-markdown-field"
:class="{ 'prepend-top-default append-bottom-default': addSpacingClasses }"
ref="gl-form"> ref="gl-form">
<markdown-header <markdown-header
:preview-markdown="previewMarkdown" :preview-markdown="previewMarkdown"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment