2018-11-18 11:04:12 -06:00
|
|
|
<template>
|
2019-02-25 04:45:00 -06:00
|
|
|
<div class="puqkfets" :class="{ mini: narrow }">
|
2018-11-18 11:04:12 -06:00
|
|
|
<mk-avatar class="avatar" :user="note.user"/>
|
|
|
|
<fa icon="retweet"/>
|
|
|
|
<i18n path="@.renoted-by" tag="span">
|
2018-12-05 19:02:04 -06:00
|
|
|
<router-link class="name" :to="note.user | userPage" v-user-preview="note.userId" place="user">
|
2018-12-06 01:09:33 -06:00
|
|
|
<mk-user-name :user="note.user"/>
|
2018-12-05 19:02:04 -06:00
|
|
|
</router-link>
|
2018-11-18 11:04:12 -06:00
|
|
|
</i18n>
|
|
|
|
<div class="info">
|
2018-11-18 11:09:27 -06:00
|
|
|
<span class="mobile" v-if="note.viaMobile"><fa icon="mobile-alt"/></span>
|
2018-11-18 11:04:12 -06:00
|
|
|
<mk-time :time="note.createdAt"/>
|
|
|
|
<span class="visibility" v-if="note.visibility != 'public'">
|
|
|
|
<fa v-if="note.visibility == 'home'" icon="home"/>
|
|
|
|
<fa v-if="note.visibility == 'followers'" icon="unlock"/>
|
2019-01-11 18:40:53 -06:00
|
|
|
<fa v-if="note.visibility == 'specified'" icon="envelope"/>
|
2018-11-18 11:04:12 -06:00
|
|
|
</span>
|
|
|
|
<span class="localOnly" v-if="note.localOnly == true"><fa icon="heart"/></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
import i18n from '../../../i18n';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
i18n: i18n(),
|
|
|
|
props: {
|
|
|
|
note: {
|
|
|
|
type: Object,
|
|
|
|
required: true
|
2019-02-25 04:45:00 -06:00
|
|
|
}
|
|
|
|
},
|
|
|
|
inject: {
|
|
|
|
narrow: {
|
2018-11-18 11:04:12 -06:00
|
|
|
default: false
|
|
|
|
}
|
2019-02-25 04:45:00 -06:00
|
|
|
},
|
2018-11-18 11:04:12 -06:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="stylus" scoped>
|
|
|
|
.puqkfets
|
|
|
|
display flex
|
|
|
|
align-items center
|
2019-02-25 04:45:00 -06:00
|
|
|
padding 8px 16px
|
2018-11-18 11:04:12 -06:00
|
|
|
line-height 28px
|
|
|
|
white-space pre
|
|
|
|
color var(--renoteText)
|
|
|
|
background linear-gradient(to bottom, var(--renoteGradient) 0%, var(--face) 100%)
|
|
|
|
|
2019-02-25 04:45:00 -06:00
|
|
|
&:not(.mini)
|
2018-11-18 11:04:12 -06:00
|
|
|
padding 8px 16px
|
|
|
|
|
|
|
|
@media (min-width 500px)
|
2019-02-25 04:45:00 -06:00
|
|
|
padding 8px 16px
|
2018-11-18 11:04:12 -06:00
|
|
|
|
|
|
|
@media (min-width 600px)
|
2019-02-25 04:45:00 -06:00
|
|
|
padding 16px 32px 8px 32px
|
2018-11-18 11:04:12 -06:00
|
|
|
|
|
|
|
> .avatar
|
|
|
|
flex-shrink 0
|
|
|
|
display inline-block
|
|
|
|
width 28px
|
|
|
|
height 28px
|
|
|
|
margin 0 8px 0 0
|
|
|
|
border-radius 6px
|
|
|
|
|
|
|
|
> [data-icon]
|
|
|
|
margin-right 4px
|
|
|
|
|
|
|
|
> span
|
|
|
|
overflow hidden
|
|
|
|
flex-shrink 1
|
|
|
|
text-overflow ellipsis
|
|
|
|
white-space nowrap
|
|
|
|
|
|
|
|
> .name
|
|
|
|
font-weight bold
|
|
|
|
|
|
|
|
> .info
|
|
|
|
margin-left auto
|
|
|
|
font-size 0.9em
|
|
|
|
|
2018-11-18 11:09:27 -06:00
|
|
|
> .mobile
|
|
|
|
margin-right 8px
|
|
|
|
|
2018-11-18 11:04:12 -06:00
|
|
|
> .mk-time
|
|
|
|
flex-shrink 0
|
|
|
|
|
|
|
|
> .visibility
|
|
|
|
margin-left 8px
|
|
|
|
|
|
|
|
[data-icon]
|
|
|
|
margin-right 0
|
|
|
|
|
|
|
|
> .localOnly
|
|
|
|
margin-left 4px
|
|
|
|
|
|
|
|
[data-icon]
|
|
|
|
margin-right 0
|
|
|
|
|
|
|
|
</style>
|