Skip to content

Commit

Permalink
fix(containers): X of X things - mobile support
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Aug 20, 2024
1 parent 7808e33 commit 9c97de4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const BackupContainer = () => {
<ServerContentBlock title={'Backups'}>
<MainPageHeader title={'Backups'}>
<Can action={'backup.create'}>
<div className={`sm:flex items-center justify-end`}>
<div className={`flex flex-col sm:flex-row items-center justify-end`}>
{backupLimit > 0 && backups.backupCount > 0 && (
<p className={`text-sm text-zinc-300 mb-4 sm:mr-6 sm:mb-0`}>
{backups.backupCount} of {backupLimit} backups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default () => {
<FlashMessageRender byKey={'databases'} />
<MainPageHeader title={'Databases'}>
<Can action={'database.create'}>
<div className={`flex items-center justify-end`}>
<div className={`flex flex-col sm:flex-row items-center justify-end`}>
{databaseLimit > 0 && databases.length > 0 && (
<p className={`text-sm text-zinc-300 mb-4 sm:mr-6 sm:mb-0`}>
{databases.length} of {databaseLimit} databases
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ export default ({ databaseId, onUpdate }: { databaseId: string; onUpdate: (datab
key: 'database-connection-modal',
});
})
.then(() => setLoading(false));
.then(() => {
setTimeout(() => {
setLoading(false);
}, 500);
});
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const NetworkContainer = () => {
<>
{allocationLimit > 0 && (
<Can action={'allocation.create'}>
<div className={`sm:flex items-center justify-end`}>
<div className={`flex flex-col sm:flex-row items-center justify-end`}>
<p className={`text-sm text-zinc-300 mb-4 sm:mr-6 sm:mb-0`}>
{data.length} of {allocationLimit} allowed allocations
</p>
Expand Down

0 comments on commit 9c97de4

Please sign in to comment.