wip
This commit is contained in:
parent
7816282318
commit
bc632cefe5
11 changed files with 104 additions and 90 deletions
|
|
@ -287,7 +287,7 @@ export default Vue.extend({
|
|||
width calc(100% - 275px * 2)
|
||||
order 2
|
||||
|
||||
> *:not(main)
|
||||
> *:not(.main)
|
||||
width 275px
|
||||
padding 16px 0 16px 0
|
||||
|
||||
|
|
@ -303,7 +303,7 @@ export default Vue.extend({
|
|||
order 3
|
||||
|
||||
@media (max-width 1100px)
|
||||
> *:not(main)
|
||||
> *:not(.main)
|
||||
display none
|
||||
|
||||
> .main
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
</a>
|
||||
<div class="text">
|
||||
<p>
|
||||
<mk-reaction-icon reaction={ notification.reaction }/>
|
||||
<mk-reaction-icon :reaction="notification.reaction"/>
|
||||
<a :href="`/${notification.user.username}`" v-user-preview="notification.user.id">{{ notification.user.name }}</a>
|
||||
</p>
|
||||
<a class="post-ref" :href="`/${notification.post.user.username}/${notification.post.id}`">
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="mk-posts">
|
||||
<template v-for="(post, i) in _posts">
|
||||
<x-post :post.sync="post" :key="post.id"/>
|
||||
<x-post :post="post" :key="post.id" @update:post="onPostUpdated(i, $event)"/>
|
||||
<p class="date" v-if="i != posts.length - 1 && post._date != _posts[i + 1]._date">
|
||||
<span>%fa:angle-up%{{ post._datetext }}</span>
|
||||
<span>%fa:angle-down%{{ _posts[i + 1]._datetext }}</span>
|
||||
|
|
@ -41,6 +41,9 @@ export default Vue.extend({
|
|||
methods: {
|
||||
focus() {
|
||||
(this.$el as any).children[0].focus();
|
||||
},
|
||||
onPostUpdated(i, post) {
|
||||
Vue.set((this as any).posts, i, post);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue