2020-01-30 04:37:25 +09:00
|
|
|
<template>
|
|
|
|
<header class="kkwtjztg">
|
2021-11-19 19:36:12 +09:00
|
|
|
<MkA v-user-preview="note.user.id" class="name" :to="userPage(note.user)">
|
2023-01-04 08:31:07 +09:00
|
|
|
<MkUserName :user="note.user" class="mkusername">
|
|
|
|
<span v-if="note.user.isBot" class="is-bot">bot</span>
|
|
|
|
</MkUserName>
|
2020-10-25 01:21:41 +09:00
|
|
|
</MkA>
|
2021-09-20 22:14:49 +09:00
|
|
|
<div class="username"><MkAcct :user="note.user"/></div>
|
2020-01-30 04:37:25 +09:00
|
|
|
<div class="info">
|
2020-10-25 01:21:41 +09:00
|
|
|
<MkA class="created-at" :to="notePage(note)">
|
2020-10-17 20:12:00 +09:00
|
|
|
<MkTime :time="note.createdAt"/>
|
2020-10-25 01:21:41 +09:00
|
|
|
</MkA>
|
2022-07-07 21:17:47 +09:00
|
|
|
<MkVisibility :note="note"/>
|
2020-01-30 04:37:25 +09:00
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
2022-01-14 10:25:51 +09:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2023-01-04 02:35:30 +09:00
|
|
|
import type * as misskey from 'calckey-js';
|
2022-08-31 00:24:33 +09:00
|
|
|
import MkVisibility from '@/components/MkVisibility.vue';
|
2021-11-28 20:29:37 +09:00
|
|
|
import { notePage } from '@/filters/note';
|
2021-11-12 02:02:25 +09:00
|
|
|
import { userPage } from '@/filters/user';
|
2020-01-30 04:37:25 +09:00
|
|
|
|
2022-01-14 10:25:51 +09:00
|
|
|
defineProps<{
|
|
|
|
note: misskey.entities.Note;
|
|
|
|
pinned?: boolean;
|
|
|
|
}>();
|
2020-01-30 04:37:25 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.kkwtjztg {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
white-space: nowrap;
|
2023-01-04 02:35:30 +09:00
|
|
|
justify-self: flex-end;
|
|
|
|
padding: .1em .7em;
|
|
|
|
border-radius: 100px;
|
|
|
|
font-size: .8em;
|
2023-01-04 11:51:40 +09:00
|
|
|
text-shadow: 0 2px 2px var(--shadow);
|
2020-01-30 04:37:25 +09:00
|
|
|
|
|
|
|
> .name {
|
2021-09-20 22:14:49 +09:00
|
|
|
flex-shrink: 1;
|
2020-01-30 04:37:25 +09:00
|
|
|
display: block;
|
|
|
|
margin: 0 .5em 0 0;
|
|
|
|
padding: 0;
|
2021-03-02 22:57:16 +09:00
|
|
|
overflow: hidden;
|
2023-01-04 04:02:02 +09:00
|
|
|
font-size: 1.2em;
|
2020-01-30 04:37:25 +09:00
|
|
|
font-weight: bold;
|
|
|
|
text-decoration: none;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
2023-01-04 08:31:07 +09:00
|
|
|
>.mkusername >.is-bot {
|
|
|
|
flex-shrink: 0;
|
|
|
|
align-self: center;
|
|
|
|
margin: 0 .5em 0 0;
|
|
|
|
padding: 1px 6px;
|
|
|
|
font-size: 80%;
|
|
|
|
border: solid 0.5px var(--divider);
|
|
|
|
border-radius: 3px;
|
|
|
|
}
|
|
|
|
|
2020-01-30 04:37:25 +09:00
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .username {
|
2021-09-20 22:14:49 +09:00
|
|
|
flex-shrink: 9999999;
|
2020-01-30 04:37:25 +09:00
|
|
|
margin: 0 .5em 0 0;
|
2021-03-02 22:57:16 +09:00
|
|
|
overflow: hidden;
|
2020-01-30 04:37:25 +09:00
|
|
|
text-overflow: ellipsis;
|
2023-01-04 09:09:57 +09:00
|
|
|
grid-row: 2;
|
|
|
|
align-self: flex-start;
|
2020-01-30 04:37:25 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .info {
|
2021-09-20 22:14:49 +09:00
|
|
|
flex-shrink: 0;
|
2020-01-30 04:37:25 +09:00
|
|
|
margin-left: auto;
|
|
|
|
font-size: 0.9em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|