diff --git a/locales/en/translation.json b/locales/en/translation.json index 269b2bef..edc3d121 100644 --- a/locales/en/translation.json +++ b/locales/en/translation.json @@ -41,6 +41,7 @@ "domain": "Domain", "sign_in": "Sign in", "authorize": "Authorize", + "authorization_url": "Normally, the browser will open automatically, but if it doesn't, please open the following URL in your browser and approve it.", "authorization_code": "Authorization Code", "authorization_helper": "Please paste the authorization code from your browser", "without_code_authorize": "Please approve Whalebird in your browser, and after you approve it please authorize", diff --git a/renderer/app.scss b/renderer/app.scss index ffef9ba5..a8d8fc07 100644 --- a/renderer/app.scss +++ b/renderer/app.scss @@ -114,6 +114,10 @@ opacity: 1; } +.no-scroll::-webkit-scrollbar { + display: none; +} + button:focus { outline: none; } diff --git a/renderer/components/accounts/New.tsx b/renderer/components/accounts/New.tsx index dd6fd036..dddd1943 100644 --- a/renderer/components/accounts/New.tsx +++ b/renderer/components/accounts/New.tsx @@ -2,8 +2,9 @@ import generator, { MegalodonInterface, OAuth, detector } from 'megalodon' import { useCallback, useEffect, useRef, useState } from 'react' import { db } from '@/db' import { FormattedMessage, useIntl } from 'react-intl' -import { Alert, Button, Dialog, DialogBody, DialogHeader, Input, Spinner, Typography } from '@material-tailwind/react' +import { Alert, Button, Dialog, DialogBody, DialogHeader, IconButton, Input, Spinner, Typography } from '@material-tailwind/react' import { invoke } from '@/utils/invoke' +import { FaPaperclip } from 'react-icons/fa6' type NewProps = { opened: boolean @@ -77,6 +78,10 @@ export default function New(props: NewProps) { } }, [props.opened, sns]) + const copyText = (text: string) => { + navigator.clipboard.writeText(text) + } + const authorize = async () => { setError('') setLoading(true) @@ -169,6 +174,19 @@ export default function New(props: NewProps) { <> {appData ? (