@@ -137,6 +137,7 @@ SPDX-License-Identifier: AGPL-3.0-only
137
137
<button class="_button" :class="[$style.tab, { [$style.tabActive]: tab === 'replies' }]" @click="tab = 'replies'"><i class="ti ti-arrow-back-up"></i> {{ i18n.ts.replies }}</button>
138
138
<button class="_button" :class="[$style.tab, { [$style.tabActive]: tab === 'renotes' }]" @click="tab = 'renotes'"><i class="ti ti-repeat"></i> {{ i18n.ts.renotes }}</button>
139
139
<button class="_button" :class="[$style.tab, { [$style.tabActive]: tab === 'reactions' }]" @click="tab = 'reactions'"><i class="ti ti-icons"></i> {{ i18n.ts.reactions }}</button>
140
+ <button class="_button" :class="[$style.tab, { [$style.tabActive]: tab === 'history' }]" @click="tab = 'history'"><i class="ti ti-pencil"></i> {{ i18n.ts.edited }}</button>
140
141
</div>
141
142
<div>
142
143
<div v-if="tab === 'replies'" :class="$style.tab_replies">
@@ -173,6 +174,13 @@ SPDX-License-Identifier: AGPL-3.0-only
173
174
</template>
174
175
</MkPagination>
175
176
</div>
177
+ <div v-else-if="tab === 'history'" :class="$style.tab_history">
178
+ <div style="display: grid;">
179
+ <div v-for="text in appearNote.noteEditHistory.reverse()" :key="text">
180
+ <MkNotePreview :class="$style.historyNote" :text="text"/>
181
+ </div>
182
+ </div>
183
+ </div>
176
184
</div>
177
185
</div>
178
186
<div v-else class="_panel" :class="$style.muted" @click="muted = false">
@@ -192,6 +200,7 @@ import * as mfm from 'mfm-js';
192
200
import * as Misskey from 'misskey-js';
193
201
import MkNoteSub from '@/components/MkNoteSub.vue';
194
202
import MkNoteSimple from '@/components/MkNoteSimple.vue';
203
+ import MkNotePreview from '@/components/MkNotePreview.vue';
195
204
import MkReactionsViewer from '@/components/MkReactionsViewer.vue';
196
205
import MkMediaList from '@/components/MkMediaList.vue';
197
206
import MkCwButton from '@/components/MkCwButton.vue';
@@ -747,6 +756,9 @@ function loadConversation() {
747
756
padding: 16px;
748
757
}
749
758
759
+ .tab_history {
760
+ padding: 16px;
761
+ }
750
762
.reactionTabs {
751
763
display: flex;
752
764
gap: 8px;
@@ -810,6 +822,12 @@ function loadConversation() {
810
822
}
811
823
}
812
824
825
+ .historyNote {
826
+ padding-top: 10px;
827
+ min-height: 75px;
828
+ overflow: auto;
829
+ }
830
+
813
831
.muted {
814
832
padding: 8px;
815
833
text-align: center;
0 commit comments