sharkey/src/client/app/desktop/views/pages/deck/deck.note.sub.vue

72 lines
1.0 KiB
Vue
Raw Normal View History

2018-06-05 21:36:21 +09:00
<template>
<div class="fnlfosztlhtptnongximhlbykxblytcq">
<mk-avatar class="avatar" :user="note.user"/>
<div class="main">
2018-06-08 21:17:48 +09:00
<mk-note-header class="header" :note="note" :mini="true"/>
2018-06-05 21:36:21 +09:00
<div class="body">
<mk-sub-note-content class="text" :note="note"/>
</div>
</div>
</div>
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
props: {
note: {
type: Object,
required: true
},
// TODO
truncate: {
type: Boolean,
default: true
}
}
});
</script>
<style lang="stylus" scoped>
2018-09-28 19:59:19 +09:00
.fnlfosztlhtptnongximhlbykxblytcq
2018-06-05 21:36:21 +09:00
display flex
padding 16px
font-size 10px
2018-09-27 11:55:17 +09:00
background var(--subNoteBg)
2018-06-05 21:36:21 +09:00
&.smart
> .main
width 100%
> header
align-items center
> .avatar
flex-shrink 0
display block
margin 0 8px 0 0
width 38px
height 38px
border-radius 8px
> .main
flex 1
min-width 0
2018-06-08 20:57:02 +09:00
> .header
2018-06-05 21:36:21 +09:00
margin-bottom 2px
> .body
> .text
margin 0
padding 0
2018-09-28 12:13:08 +09:00
color var(--subNoteText)
2018-06-05 21:36:21 +09:00
pre
max-height 120px
font-size 80%
</style>