Skip to content

Commit

Permalink
fix: share information text color in light mode
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Nov 5, 2023
1 parent 1ba8d0c commit 1138cd0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/src/components/account/showShareInformationsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
)}
Expand All @@ -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>
Expand Down

0 comments on commit 1138cd0

Please sign in to comment.