Skip to content

Commit b79d6e9

Browse files
authored
Minor UI fixes (pterodactyl#3366)
* Added same spacing as CPU graph to RAM graph * Have the "New Database" button be on the right when on mobile
1 parent 4822935 commit b79d6e9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

resources/scripts/components/server/StatGraphs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default () => {
9696

9797
setCpu(
9898
new Chart(node.getContext('2d')!, chartDefaults({
99-
callback: (value) => `${value}%`,
99+
callback: (value) => `${value}% `,
100100
})),
101101
);
102102
}, []);

resources/scripts/components/server/databases/DatabasesContainer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ export default () => {
6262
</p>
6363
}
6464
<Can action={'database.create'}>
65-
<div css={tw`mt-6 sm:flex items-center justify-end`}>
65+
<div css={tw`mt-6 flex items-center justify-end`}>
6666
{(databaseLimit > 0 && databases.length > 0) &&
6767
<p css={tw`text-sm text-neutral-300 mb-4 sm:mr-6 sm:mb-0`}>
6868
{databases.length} of {databaseLimit} databases have been allocated to this
6969
server.
7070
</p>
7171
}
7272
{databaseLimit > 0 && databaseLimit !== databases.length &&
73-
<CreateDatabaseButton css={tw`w-full sm:w-auto`}/>
73+
<CreateDatabaseButton css={tw`flex justify-end mt-6`}/>
7474
}
7575
</div>
7676
</Can>

resources/scripts/components/server/users/EditSubuserModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const EditSubuserModal = ({ subuser }: Props) => {
9999
<h2 css={tw`text-2xl`} ref={ref}>
100100
{subuser ? `${canEditUser ? 'Modify' : 'View'} permissions for ${subuser.email}` : 'Create new subuser'}
101101
</h2>
102-
<div>
102+
<div>
103103
<Button type={'submit'} css={tw`w-full sm:w-auto`}>
104104
{subuser ? 'Save' : 'Invite User'}
105105
</Button>

0 commit comments

Comments
 (0)