Skip to content

Commit 10eeae0

Browse files
authored
Fix text overflows through out the front end (pterodactyl#2406)
1 parent 6893f9b commit 10eeae0

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

resources/scripts/components/elements/Modal.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ const ModalContainer = styled.div<{ alignTop?: boolean }>`
3535
margin-top: 20%;
3636
${breakpoint('md')`margin-top: 10%`};
3737
`};
38+
39+
margin-bottom: 5%;
3840
3941
& > .close-icon {
4042
${tw`absolute right-0 p-2 text-white cursor-pointer opacity-50 transition-all duration-150 ease-linear hover:opacity-100`};

resources/scripts/components/server/backups/BackupRow.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ export default ({ backup, className }: Props) => {
5555
Failed
5656
</span>
5757
}
58-
{backup.name}
58+
<div css={tw`break-all`}>
59+
{backup.name}
60+
</div>
5961
{(backup.completedAt && backup.isSuccessful) &&
6062
<span css={tw`ml-3 text-neutral-300 text-xs font-thin hidden sm:inline`}>{bytesToHuman(backup.bytes)}</span>
6163
}

resources/scripts/components/server/files/FileObjectRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const FileObjectRow = ({ file }: { file: FileObject }) => (
6969
<FontAwesomeIcon icon={faFolder}/>
7070
}
7171
</div>
72-
<div css={tw`flex-1`}>
72+
<div css={tw`flex-1 break-all`}>
7373
{file.name}
7474
</div>
7575
{file.isFile &&

resources/scripts/components/server/files/NewDirectoryButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default ({ className }: WithClassname) => {
8888
name={'directoryName'}
8989
label={'Directory Name'}
9090
/>
91-
<p css={tw`text-xs mt-2 text-neutral-400`}>
91+
<p css={tw`text-xs mt-2 text-neutral-400 break-all`}>
9292
<span css={tw`text-neutral-200`}>This directory will be created as</span>
9393
&nbsp;/home/container/
9494
<span css={tw`text-cyan-200`}>

0 commit comments

Comments
 (0)