mirror of
https://github.com/stonith404/pingvin-share.git
synced 2025-02-05 01:38:56 -05:00
fix: share information text color in light mode
This commit is contained in:
parent
1ba8d0cbd1
commit
1138cd02b0
1 changed files with 8 additions and 8 deletions
|
@ -12,7 +12,7 @@ const showShareInformationsModal = (
|
||||||
modals: ModalsContextProps,
|
modals: ModalsContextProps,
|
||||||
share: MyShare,
|
share: MyShare,
|
||||||
appUrl: string,
|
appUrl: string,
|
||||||
maxShareSize: number,
|
maxShareSize: number
|
||||||
) => {
|
) => {
|
||||||
const t = translateOutsideContext();
|
const t = translateOutsideContext();
|
||||||
const link = `${appUrl}/s/${share.id}`;
|
const link = `${appUrl}/s/${share.id}`;
|
||||||
|
@ -36,28 +36,28 @@ const showShareInformationsModal = (
|
||||||
|
|
||||||
children: (
|
children: (
|
||||||
<Stack align="stretch" spacing="md">
|
<Stack align="stretch" spacing="md">
|
||||||
<Text size="sm" color="lightgray">
|
<Text size="sm">
|
||||||
<b>
|
<b>
|
||||||
<FormattedMessage id="account.shares.table.id" />:{" "}
|
<FormattedMessage id="account.shares.table.id" />:{" "}
|
||||||
</b>
|
</b>
|
||||||
{share.id}
|
{share.id}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text size="sm" color="lightgray">
|
<Text size="sm">
|
||||||
<b>
|
<b>
|
||||||
<FormattedMessage id="account.shares.table.description" />:{" "}
|
<FormattedMessage id="account.shares.table.description" />:{" "}
|
||||||
</b>
|
</b>
|
||||||
{share.description || "No description"}
|
{share.description || "No description"}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text size="sm" color="lightgray">
|
<Text size="sm">
|
||||||
<b>
|
<b>
|
||||||
<FormattedMessage id="account.shares.table.createdAt" />:{" "}
|
<FormattedMessage id="account.shares.table.createdAt" />:{" "}
|
||||||
</b>
|
</b>
|
||||||
{formattedCreatedAt}
|
{formattedCreatedAt}
|
||||||
</Text>
|
</Text>
|
||||||
|
|
||||||
<Text size="sm" color="lightgray">
|
<Text size="sm">
|
||||||
<b>
|
<b>
|
||||||
<FormattedMessage id="account.shares.table.expiresAt" />:{" "}
|
<FormattedMessage id="account.shares.table.expiresAt" />:{" "}
|
||||||
</b>
|
</b>
|
||||||
|
@ -66,7 +66,7 @@ const showShareInformationsModal = (
|
||||||
<Divider />
|
<Divider />
|
||||||
<CopyTextField link={link} />
|
<CopyTextField link={link} />
|
||||||
<Divider />
|
<Divider />
|
||||||
<Text size="sm" color="lightgray">
|
<Text size="sm">
|
||||||
<b>
|
<b>
|
||||||
<FormattedMessage id="account.shares.table.size" />:{" "}
|
<FormattedMessage id="account.shares.table.size" />:{" "}
|
||||||
</b>
|
</b>
|
||||||
|
@ -76,7 +76,7 @@ const showShareInformationsModal = (
|
||||||
|
|
||||||
<Flex align="center" justify="center">
|
<Flex align="center" justify="center">
|
||||||
{shareSize / maxShareSize < 0.1 && (
|
{shareSize / maxShareSize < 0.1 && (
|
||||||
<Text size="xs" color="lightgray" style={{ marginRight: "4px" }}>
|
<Text size="xs" style={{ marginRight: "4px" }}>
|
||||||
{formattedShareSize}
|
{formattedShareSize}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
@ -87,7 +87,7 @@ const showShareInformationsModal = (
|
||||||
size="xl"
|
size="xl"
|
||||||
radius="xl"
|
radius="xl"
|
||||||
/>
|
/>
|
||||||
<Text size="xs" color="lightgray" style={{ marginLeft: "4px" }}>
|
<Text size="xs" style={{ marginLeft: "4px" }}>
|
||||||
{formattedMaxShareSize}
|
{formattedMaxShareSize}
|
||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
Loading…
Add table
Reference in a new issue