chore: formatting

This commit is contained in:
ThatOneCalculator 2023-05-19 23:27:56 -07:00
parent 7e7357bae8
commit 3f414d5921
5 changed files with 18 additions and 20 deletions

View File

@ -478,8 +478,8 @@ export const meta = {
properties: {
postEditing: {
type: "boolean",
}
}
},
},
},
},
},

View File

@ -253,7 +253,10 @@ let clips = $ref();
let renotes = $ref();
let isScrolling;
const reactionsCount = Object.values(props.note.reactions).reduce((x,y) => x + y, 0);
const reactionsCount = Object.values(props.note.reactions).reduce(
(x, y) => x + y,
0
);
const keymap = {
r: () => reply(true),
@ -524,14 +527,14 @@ onUnmounted(() => {
}
}
> :deep(.chips), {
> :deep(.chips) {
padding-block: 6px 12px;
padding-left: 32px;
&:last-child {
margin-bottom: 12px;
}
}
> :deep(.user-card-mini),
> :deep(.user-card-mini),
> :deep(.reacted-users > *) {
padding-inline: 32px;
border-top: 1px solid var(--divider);

View File

@ -4,10 +4,7 @@
<button
v-for="reaction in reactions"
:key="reaction"
:class="[
$style.tab,
{ [$style.tabActive]: tab === reaction },
]"
:class="[$style.tab, { [$style.tabActive]: tab === reaction }]"
class="_button"
@click="tab = reaction"
>
@ -15,10 +12,7 @@
ref="reactionRef"
:reaction="
reaction
? reaction.replace(
/^:(\w+):$/,
':$1@.:'
)
? reaction.replace(/^:(\w+):$/, ':$1@.:')
: reaction
"
:custom-emojis="note.emojis"
@ -32,7 +26,7 @@
v-for="user in users"
:key="user.id"
:user="user"
:with-chart="false"
:with-chart="false"
/>
</div>
<div v-else>

View File

@ -90,7 +90,11 @@ export default defineComponent({
font-size: 0.85em;
overflow-x: auto;
mask: linear-gradient(to right, black calc(100% - 90px), transparent);
-webkit-mask: linear-gradient(to right, black calc(100% - 90px), transparent);
-webkit-mask: linear-gradient(
to right,
black calc(100% - 90px),
transparent
);
padding-right: 90px !important;
&::-webkit-scrollbar {
display: none;
@ -109,7 +113,7 @@ export default defineComponent({
margin-top: -0.1em;
}
> .count {
margin-right: -.2em;
margin-right: -0.2em;
}
}
}

View File

@ -14,10 +14,7 @@
</div>
</template>
<template #default="{ items }">
<MkInfo
v-if="$i?.isLocked === false"
warn
class="info"
<MkInfo v-if="$i?.isLocked === false" warn class="info"
>{{ i18n.ts.silencedWarning }}
</MkInfo>
<div class="mk-follow-requests">