More tweaks + fix instance ticker weeeeeeeeeeeeeee

This commit is contained in:
Freeplay 2023-01-04 23:37:22 -05:00
parent 32fc052978
commit 2c700de5d9
1 changed files with 9 additions and 2 deletions

View File

@ -26,10 +26,15 @@
<script lang="ts" setup> <script lang="ts" setup>
import { } from 'vue'; import { } from 'vue';
import type * as misskey from 'calckey-js'; import type * as misskey from 'calckey-js';
import { defaultStore, noteViewInterruptors } from '@/store';
import MkVisibility from '@/components/MkVisibility.vue'; import MkVisibility from '@/components/MkVisibility.vue';
import MkInstanceTicker from '@/components/MkInstanceTicker.vue';
import { notePage } from '@/filters/note'; import { notePage } from '@/filters/note';
import { userPage } from '@/filters/user'; import { userPage } from '@/filters/user';
const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.user.instance);
defineProps<{ defineProps<{
note: misskey.entities.Note; note: misskey.entities.Note;
pinned?: boolean; pinned?: boolean;
@ -49,13 +54,15 @@ defineProps<{
> .avatar { > .avatar {
width: 3.7em; width: 3.7em;
height: 3.7em; height: 3.7em;
margin-right: 8px; margin-right: 1em;
} }
> .user-info { > .user-info {
width: 0;
flex-grow: 1; flex-grow: 1;
line-height: 1.5;
> div { > div {
display: flex; display: flex;
align-items: center;
} }
.name { .name {
flex: 1 1 0px; flex: 1 1 0px;