Skip to content

Commit

Permalink
Merge pull request #405 from LucienShui/main
Browse files Browse the repository at this point in the history
Add tab-size: 4
  • Loading branch information
LucienShui authored Jun 14, 2021
2 parents fc7b4cb + 91021a3 commit 8076737
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<b-form-textarea v-model="form.content" rows="10"
:placeholder="$t('lang.form.textarea.placeholder.' +
($store.state.read_once ? 'read_once' : 'write_something_here'))"
required no-resize></b-form-textarea>
required no-resize style="tab-size: 4;"></b-form-textarea>
</b-form-group>
<b-form-group>
<b-checkbox-group switches>
Expand Down
9 changes: 7 additions & 2 deletions src/components/PasteView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
</b-row>
</b-card-header>
<div ref="hljs">
<b-card-body style="padding-bottom: 0" v-if="lang !== 'markdown' || raw.length === 1">
<b-card-body class="paste-content-viewer" v-if="lang !== 'markdown' || raw.length === 1">
<pre><code v-bind:class="'line-numbers ' + lang" v-text="this.content"></code></pre>
</b-card-body>
<b-card-body style="padding-bottom: 0" v-else>
<b-card-body class="paste-content-viewer" v-else>
<div class="markdown-body">
<div v-html="markdown.render(content)"></div>
</div>
Expand Down Expand Up @@ -156,4 +156,9 @@
padding: 15px;
}
}
.paste-content-viewer {
padding-bottom: 0;
tab-size: 4;
}
</style>

0 comments on commit 8076737

Please sign in to comment.