1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-09-28 15:50:10 +02:00

fix: share information text color in light mode

This commit is contained in:
Elias Schneider 2023-11-05 12:36:42 +01:00
parent 1ba8d0cbd1
commit 1138cd02b0
No known key found for this signature in database
GPG Key ID: 07E623B294202B6C

View File

@ -12,7 +12,7 @@ const showShareInformationsModal = (
modals: ModalsContextProps,
share: MyShare,
appUrl: string,
maxShareSize: number,
maxShareSize: number
) => {
const t = translateOutsideContext();
const link = `${appUrl}/s/${share.id}`;
@ -36,28 +36,28 @@ const showShareInformationsModal = (
children: (
<Stack align="stretch" spacing="md">
<Text size="sm" color="lightgray">
<Text size="sm">
<b>
<FormattedMessage id="account.shares.table.id" />:{" "}
</b>
{share.id}
</Text>
<Text size="sm" color="lightgray">
<Text size="sm">
<b>
<FormattedMessage id="account.shares.table.description" />:{" "}
</b>
{share.description || "No description"}
</Text>
<Text size="sm" color="lightgray">
<Text size="sm">
<b>
<FormattedMessage id="account.shares.table.createdAt" />:{" "}
</b>
{formattedCreatedAt}
</Text>
<Text size="sm" color="lightgray">
<Text size="sm">
<b>
<FormattedMessage id="account.shares.table.expiresAt" />:{" "}
</b>
@ -66,7 +66,7 @@ const showShareInformationsModal = (
<Divider />
<CopyTextField link={link} />
<Divider />
<Text size="sm" color="lightgray">
<Text size="sm">
<b>
<FormattedMessage id="account.shares.table.size" />:{" "}
</b>
@ -76,7 +76,7 @@ const showShareInformationsModal = (
<Flex align="center" justify="center">
{shareSize / maxShareSize < 0.1 && (
<Text size="xs" color="lightgray" style={{ marginRight: "4px" }}>
<Text size="xs" style={{ marginRight: "4px" }}>
{formattedShareSize}
</Text>
)}
@ -87,7 +87,7 @@ const showShareInformationsModal = (
size="xl"
radius="xl"
/>
<Text size="xs" color="lightgray" style={{ marginLeft: "4px" }}>
<Text size="xs" style={{ marginLeft: "4px" }}>
{formattedMaxShareSize}
</Text>
</Flex>