Reintroduce inline metadata with full RTL support

This commit is contained in:
Scott Nonnenberg
2022-03-23 13:23:28 -07:00
committed by GitHub
parent 801c70b298
commit bb066d4a84
10 changed files with 185 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
// Copyright 2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { ReactElement } from 'react';
import React from 'react';
const SPACING = 10;
export const MessageTextMetadataSpacer = ({
metadataWidth,
}: Readonly<{ metadataWidth: number }>): ReactElement => (
<span style={{ display: 'inline-block', width: metadataWidth + SPACING }} />
);