From 5fd27545c8b86c1f2bd4e72507fd145f21474329 Mon Sep 17 00:00:00 2001 From: sparrow <sparrow@spooky.academy> Date: Wed, 28 Jun 2023 03:55:29 +0100 Subject: [PATCH] format --- packages/backend/src/db/postgre.ts | 2 +- .../src/components/MkReactionsViewer.vue | 16 +++++++++++++--- packages/client/src/pages/settings/general.vue | 18 ++++++++++++------ 3 files changed, 26 insertions(+), 10 deletions(-) diff --git a/packages/backend/src/db/postgre.ts b/packages/backend/src/db/postgre.ts index f632a6ec4..1ba226a8e 100644 --- a/packages/backend/src/db/postgre.ts +++ b/packages/backend/src/db/postgre.ts @@ -211,7 +211,7 @@ export const db = new DataSource({ password: config.redis.pass, keyPrefix: `${config.redis.prefix}:query:`, db: config.redis.db || 0, - tls: config.redis.tls || {} , + tls: config.redis.tls || {}, }, } : false, diff --git a/packages/client/src/components/MkReactionsViewer.vue b/packages/client/src/components/MkReactionsViewer.vue index f5a9a6cb2..b60c53df6 100644 --- a/packages/client/src/components/MkReactionsViewer.vue +++ b/packages/client/src/components/MkReactionsViewer.vue @@ -7,7 +7,7 @@ :count="count" :is-initial="initialReactions.has(reaction)" :note="note" - @reacted="reactionsEl.scrollTo(0,0)" + @reacted="reactionsEl.scrollTo(0, 0)" /> </div> </template> @@ -37,8 +37,18 @@ const isMe = computed(() => $i && $i.id === props.note.userId); overflow-x: auto; margin-inline: -24px; padding-inline: 22px 160px; - mask: linear-gradient(to right, transparent, black 24px calc(100% - 160px), transparent); - -webkit-mask: linear-gradient(to right, transparent, black 24px calc(100% - 160px), transparent); + mask: linear-gradient( + to right, + transparent, + black 24px calc(100% - 160px), + transparent + ); + -webkit-mask: linear-gradient( + to right, + transparent, + black 24px calc(100% - 160px), + transparent + ); scrollbar-width: none; &::-webkit-scrollbar { display: none; diff --git a/packages/client/src/pages/settings/general.vue b/packages/client/src/pages/settings/general.vue index 0add2b9df..3a3bf6bb1 100644 --- a/packages/client/src/pages/settings/general.vue +++ b/packages/client/src/pages/settings/general.vue @@ -45,12 +45,18 @@ class="_formBlock" >{{ i18n.ts.useReactionPickerForContextMenu }}</FormSwitch > - <FormSwitch v-if="deviceKind !== 'desktop'" v-model="swipeOnMobile" class="_formBlock">{{ - i18n.ts.swipeOnMobile - }}</FormSwitch> - <FormSwitch v-if="deviceKind === 'desktop'" v-model="swipeOnDesktop" class="_formBlock">{{ - i18n.ts.swipeOnDesktop - }}</FormSwitch> + <FormSwitch + v-if="deviceKind !== 'desktop'" + v-model="swipeOnMobile" + class="_formBlock" + >{{ i18n.ts.swipeOnMobile }}</FormSwitch + > + <FormSwitch + v-if="deviceKind === 'desktop'" + v-model="swipeOnDesktop" + class="_formBlock" + >{{ i18n.ts.swipeOnDesktop }}</FormSwitch + > <FormSwitch v-model="enterSendsMessage" class="_formBlock">{{ i18n.ts.enterSendsMessage }}</FormSwitch>