From 47d59ca20f1edc50b6b955cd298226a07c3ea95c Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 3 Oct 2020 15:48:31 -0700 Subject: [PATCH] Fix mobile UI for allocation rows --- .../components/server/backups/BackupRow.tsx | 2 +- .../server/network/AllocationRow.tsx | 33 +++++++++---------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/resources/scripts/components/server/backups/BackupRow.tsx b/resources/scripts/components/server/backups/BackupRow.tsx index fbbb849f9..ff8b356fb 100644 --- a/resources/scripts/components/server/backups/BackupRow.tsx +++ b/resources/scripts/components/server/backups/BackupRow.tsx @@ -49,7 +49,7 @@ export default ({ backup, className }: Props) => { }
-

+

{!backup.isSuccessful && Failed diff --git a/resources/scripts/components/server/network/AllocationRow.tsx b/resources/scripts/components/server/network/AllocationRow.tsx index c8b7870e7..69edb5146 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 block`}`; +const Code = styled.code`${tw`font-mono py-1 px-2 bg-neutral-900 rounded text-sm inline-block break-all`}`; const Label = styled.label`${tw`uppercase text-xs mt-1 text-neutral-400 block px-1 select-none transition-colors duration-150`}`; interface Props { @@ -40,22 +40,21 @@ const AllocationRow = ({ allocation, onSetPrimary, onNotesChanged }: Props) => { }, 750); return ( - 0 ? tw`mt-2 overflow-x-auto` : tw`overflow-x-auto`} - > -

- + +
+
+ +
+
+ {allocation.alias || allocation.ip} + +
+
+ {allocation.port} + +
-
- {allocation.alias || allocation.ip} - -
-
- {allocation.port} - -
-
+