diff --git a/resources/scripts/components/auth/ForgotPasswordContainer.tsx b/resources/scripts/components/auth/ForgotPasswordContainer.tsx index 82bd5e5ff..f82b76e20 100644 --- a/resources/scripts/components/auth/ForgotPasswordContainer.tsx +++ b/resources/scripts/components/auth/ForgotPasswordContainer.tsx @@ -94,7 +94,6 @@ export default () => { }
diff --git a/resources/scripts/components/dashboard/AccountApiContainer.tsx b/resources/scripts/components/dashboard/AccountApiContainer.tsx index 33f0eb561..d739ea601 100644 --- a/resources/scripts/components/dashboard/AccountApiContainer.tsx +++ b/resources/scripts/components/dashboard/AccountApiContainer.tsx @@ -14,26 +14,8 @@ import { httpErrorToHuman } from '@/api/http'; import { format } from 'date-fns'; import PageContentBlock from '@/components/elements/PageContentBlock'; import tw from 'twin.macro'; -import { breakpoint } from '@/theme'; -import styled from 'styled-components/macro'; import GreyRowBox from '@/components/elements/GreyRowBox'; -const Container = styled.div` - ${tw`flex flex-wrap my-10`}; - - & > div { - ${tw`w-full`}; - - ${breakpoint('md')` - width: calc(50% - 1rem); - `} - - ${breakpoint('xl')` - ${tw`w-auto flex-1`}; - `} - } -`; - export default () => { const [ deleteIdentifier, setDeleteIdentifier ] = useState(''); const [ keys, setKeys ] = useState([]); @@ -67,12 +49,12 @@ export default () => { return ( - - - + +
+ setKeys(s => ([ ...s!, key ]))}/> - + { css={[ tw`bg-neutral-600 flex items-center`, index > 0 && tw`mt-2` ]} > -
-

{key.description}

+
+

{key.description}

Last used:  {key.lastUsedAt ? format(key.lastUsedAt, 'MMM do, yyyy HH:mm') : 'Never'}

-

+

); }; diff --git a/resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx b/resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx index b9458bf39..619067486 100644 --- a/resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx +++ b/resources/scripts/components/dashboard/forms/SetupTwoFactorModal.tsx @@ -69,6 +69,7 @@ export default ({ onDismissed, ...props }: RequiredModalProps) => { {({ isSubmitting }) => ( ` ${breakpoint('md')`margin-top: 10%`}; `}; - margin-bottom: 5%; + margin-bottom: auto; & > .close-icon { ${tw`absolute right-0 p-2 text-white cursor-pointer opacity-50 transition-all duration-150 ease-linear hover:opacity-100`}; diff --git a/resources/scripts/components/server/backups/BackupRow.tsx b/resources/scripts/components/server/backups/BackupRow.tsx index fd6874cb6..426c543da 100644 --- a/resources/scripts/components/server/backups/BackupRow.tsx +++ b/resources/scripts/components/server/backups/BackupRow.tsx @@ -56,7 +56,7 @@ export default ({ backup, className }: Props) => { Failed } -

+

{backup.name}

{(backup.completedAt && backup.isSuccessful) && diff --git a/resources/scripts/components/server/files/FileObjectRow.tsx b/resources/scripts/components/server/files/FileObjectRow.tsx index b27af496e..26c37ed21 100644 --- a/resources/scripts/components/server/files/FileObjectRow.tsx +++ b/resources/scripts/components/server/files/FileObjectRow.tsx @@ -69,7 +69,7 @@ const FileObjectRow = ({ file }: { file: FileObject }) => ( }
-
+
{file.name}
{file.isFile && diff --git a/resources/scripts/components/server/network/AllocationRow.tsx b/resources/scripts/components/server/network/AllocationRow.tsx index 69edb5146..27c2fba92 100644 --- a/resources/scripts/components/server/network/AllocationRow.tsx +++ b/resources/scripts/components/server/network/AllocationRow.tsx @@ -15,7 +15,7 @@ import setServerAllocationNotes from '@/api/server/network/setServerAllocationNo import useFlash from '@/plugins/useFlash'; import { ServerContext } from '@/state/server'; -const Code = styled.code`${tw`font-mono py-1 px-2 bg-neutral-900 rounded text-sm inline-block break-all`}`; +const Code = styled.code`${tw`font-mono py-1 px-2 bg-neutral-900 rounded text-sm inline-block`}`; const Label = styled.label`${tw`uppercase text-xs mt-1 text-neutral-400 block px-1 select-none transition-colors duration-150`}`; interface Props { diff --git a/resources/scripts/components/server/users/UserRow.tsx b/resources/scripts/components/server/users/UserRow.tsx index a7d54fb4e..237621660 100644 --- a/resources/scripts/components/server/users/UserRow.tsx +++ b/resources/scripts/components/server/users/UserRow.tsx @@ -30,8 +30,8 @@ export default ({ subuser }: Props) => { -
-

{subuser.email}

+
+

{subuser.email}