mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-19 07:58:46 +01:00
Reintroduce inline metadata with full RTL support
This commit is contained in:
13
ts/components/conversation/MessageTextMetadataSpacer.tsx
Normal file
13
ts/components/conversation/MessageTextMetadataSpacer.tsx
Normal 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 }} />
|
||||
);
|
||||
Reference in New Issue
Block a user