fix
This commit is contained in:
parent
d44cb14615
commit
dc0243b8ea
|
@ -352,7 +352,7 @@ function readPromo() {
|
|||
content: "";
|
||||
display: block;
|
||||
margin-bottom: -10px;
|
||||
width: 0.5px;
|
||||
width: 1px;
|
||||
background-color: var(--divider);
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
|
|
@ -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 > & {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue