sbkwgh преди 8 години
родител
ревизия
d107a6c419
променени са 2 файла, в които са добавени 10 реда и са изтрити 2 реда
  1. 9 1
      src/components/InputEditor.vue
  2. 1 1
      src/components/routes/Thread.vue

+ 9 - 1
src/components/InputEditor.vue

@@ -7,6 +7,7 @@
 			"input_editor--hidden": !visible
 		}'
 	>
+		<div class='input_editor__replying' v-if='replying'>Replying to <strong>{{replying}}</strong></div>
 		<div class='input_editor__close input_editor__format_button' @click='closeEditor'>&times;</div>
 		<tab-view :tabs='["Editor", "Preview"]' :name='name' small-tabs='true'>
 			<template slot='Editor'>
@@ -67,7 +68,7 @@
 
 	export default {
 		name: 'InputEditor',
-		props: ['name', 'float'],
+		props: ['name', 'float', 'replying'],
 		components: {
 			ModalWindow,
 			FancyInput,
@@ -221,6 +222,13 @@
 			top: 0.5rem;
 		}
 
+		@at-root #{&}__replying {
+			position: absolute;
+			width: 100%;
+			text-align: center;
+			top: 0.5rem;
+		}
+
 		@at-root #{&}__format_bar {
 			width: auto;
 			position: absolute;

+ 1 - 1
src/components/routes/Thread.vue

@@ -4,7 +4,7 @@
 			<div class='thread_header__thread_title'>{{thread}}</div>
 			<button class='button thread_header__reply_button' @click='showEditor'>Reply to thread</button>
 		</header>
-		<input-editor name='thread' float='true'></input-editor>
+		<input-editor name='thread' float='true' replying='John'></input-editor>
 		<div class='posts'>
 			<div class='post' v-for='post in posts'>
 				<div class='post__meta_data'>