From dc0243b8eac190ae2a698fe987279a9c83704a48 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Wed, 1 Feb 2023 11:55:45 -0800 Subject: [PATCH] fix --- .../backend/src/services/drive/image-processor.ts | 2 +- packages/client/src/components/MkNote.vue | 2 +- packages/client/src/components/MkNoteSub.vue | 2 +- packages/client/src/scripts/media-proxy.ts | 15 +++++++++------ 4 files changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/backend/src/services/drive/image-processor.ts b/packages/backend/src/services/drive/image-processor.ts index 0934aa8063..55869f478f 100644 --- a/packages/backend/src/services/drive/image-processor.ts +++ b/packages/backend/src/services/drive/image-processor.ts @@ -25,7 +25,7 @@ export async function convertSharpToWebp( height: number, quality: number = 85, ): Promise { - const data = await sharp + const data = await sharp .resize(width, height, { fit: "inside", withoutEnlargement: true, diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 10cf6abc7b..498b3e3630 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -352,7 +352,7 @@ function readPromo() { content: ""; display: block; margin-bottom: -10px; - width: 0.5px; + width: 1px; background-color: var(--divider); margin-inline: auto; } diff --git a/packages/client/src/components/MkNoteSub.vue b/packages/client/src/components/MkNoteSub.vue index 2da18af161..6b373ce7ec 100644 --- a/packages/client/src/components/MkNoteSub.vue +++ b/packages/client/src/components/MkNoteSub.vue @@ -153,7 +153,7 @@ const replies: misskey.entities.Note[] = props.conversation?.filter(item => item &::before { content: ""; display: block; - width: 0.5px; + width: 1px; background-color: var(--divider); margin-inline: auto; .note > & { diff --git a/packages/client/src/scripts/media-proxy.ts b/packages/client/src/scripts/media-proxy.ts index aaf7f9e610..6fafe2cde8 100644 --- a/packages/client/src/scripts/media-proxy.ts +++ b/packages/client/src/scripts/media-proxy.ts @@ -1,15 +1,18 @@ -import { query } from '@/scripts/url'; -import { url } from '@/config'; +import { query } from "@/scripts/url"; +import { url } from "@/config"; -export function getProxiedImageUrl(imageUrl: string, type?: 'preview'): string { +export function getProxiedImageUrl(imageUrl: string, type?: "preview"): string { return `${url}/proxy/image.webp?${query({ url: imageUrl, - fallback: '1', - ...(type ? { [type]: '1' } : {}), + fallback: "1", + ...(type ? { [type]: "1" } : {}), })}`; } -export function getProxiedImageUrlNullable(imageUrl: string | null | undefined, type?: 'preview'): string | null { +export function getProxiedImageUrlNullable( + imageUrl: string | null | undefined, + type?: "preview", +): string | null { if (imageUrl == null) return null; return getProxiedImageUrl(imageUrl, type); }