Skip to content

Commit 4a3aef6

Browse files
committed
fix placeholder
1 parent 03899d4 commit 4a3aef6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/EditorMarkdownIt.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default {
4242
</script>
4343
<style lang="scss">
4444
.note-preview {
45-
padding: 1em;
45+
padding: 0 1em;
4646
line-height: 1.5em;
4747
4848
& h1, & h2, & h3, & h4, & h5, & h6 {

src/components/Note.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>
66
<div class="note-editor">
77
<div v-show="!note.content" class="placeholder">
8-
{{ t('notes', 'Write …') }}
8+
{{ preview ? t('notes', 'Empty note') : t('notes', 'Write …') }}
99
</div>
1010
<ThePreview v-if="preview" :value="note.content" />
1111
<TheEditor v-else :value="note.content" @input="onEdit" />
@@ -234,7 +234,7 @@ export default {
234234
.note-editor {
235235
max-width: 47em;
236236
font-size: 16px;
237-
padding: 0 1em;
237+
padding: 1em;
238238
}
239239
240240
/* center editor on large screens */
@@ -267,7 +267,7 @@ export default {
267267
/* placeholder */
268268
.placeholder {
269269
position: absolute;
270-
padding: 2em;
270+
padding: 1em;
271271
opacity: 0.5;
272272
}
273273

0 commit comments

Comments
 (0)