mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-21 22:50:59 -05:00
chore: minor styling change for clipboard modal
This commit is contained in:
parent
705dcd001b
commit
e37140dcd0
1 changed files with 5 additions and 5 deletions
|
@ -11,6 +11,11 @@ export default function Clipboard({ text, ...props }: ModalProps<"clipboard">) {
|
|||
<Modal
|
||||
{...props}
|
||||
title={<Text id="app.special.modals.clipboard.unavailable" />}
|
||||
description={
|
||||
location.protocol !== "https:" ? (
|
||||
<Text id="app.special.modals.clipboard.https" />
|
||||
) : undefined
|
||||
}
|
||||
actions={[
|
||||
{
|
||||
onClick: noopTrue,
|
||||
|
@ -18,11 +23,6 @@ export default function Clipboard({ text, ...props }: ModalProps<"clipboard">) {
|
|||
children: <Text id="app.special.modals.actions.close" />,
|
||||
},
|
||||
]}>
|
||||
{location.protocol !== "https:" && (
|
||||
<p>
|
||||
<Text id="app.special.modals.clipboard.https" />
|
||||
</p>
|
||||
)}
|
||||
<Text id="app.special.modals.clipboard.copy" />{" "}
|
||||
<code style={{ userSelect: "all", wordBreak: "break-all" }}>
|
||||
{text}
|
||||
|
|
Loading…
Reference in a new issue