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