Fix multiple attachments border radius in RTL

This commit is contained in:
Jamie Kyle 2024-01-18 15:23:58 -08:00 committed by GitHub
parent cb3d914846
commit 951e39a8f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
// Copyright 2018 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { CSSProperties } from 'react';
import React, { useCallback, useMemo } from 'react';
import classNames from 'classnames';
import { Blurhash } from 'react-blurhash';
@ -91,11 +92,11 @@ export function Image({
const resolvedBlurHash = blurHash || defaultBlurHash(theme);
const curveStyles = {
borderTopLeftRadius: curveTopLeft || CurveType.None,
borderTopRightRadius: curveTopRight || CurveType.None,
borderBottomLeftRadius: curveBottomLeft || CurveType.None,
borderBottomRightRadius: curveBottomRight || CurveType.None,
const curveStyles: CSSProperties = {
borderStartStartRadius: curveTopLeft || CurveType.None,
borderStartEndRadius: curveTopRight || CurveType.None,
borderEndStartRadius: curveBottomLeft || CurveType.None,
borderEndEndRadius: curveBottomRight || CurveType.None,
};
const canClick = useMemo(() => {