fix motd on mobile and format the player counts
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 55s
All checks were successful
Deploy App / docker (ubuntu-latest) (push) Successful in 55s
This commit is contained in:
@ -6,7 +6,7 @@ export default function Container({
|
||||
children: React.ReactNode;
|
||||
}>): JSX.Element {
|
||||
return (
|
||||
<div className="z-[9999] m-auto flex h-screen min-h-full flex-col items-center opacity-90 md:max-w-[1200px]">
|
||||
<div className="z-[9999] m-auto flex h-screen min-h-full flex-col items-center opacity-90 xs:max-w-[1200px]">
|
||||
<NavBar />
|
||||
<div className="w-full flex-1 p-4">{children}</div>
|
||||
</div>
|
||||
|
@ -18,7 +18,7 @@ export default function NavBar(): JSX.Element {
|
||||
<div className="bg-secondary w-full rounded-lg flex items-center gap-3 mt-2 bg-opacity-85 h-12">
|
||||
<div className="flex items-center gap-2 pl-3 pr-3">
|
||||
<Logo />
|
||||
<Link href="/" className="hidden md:block">
|
||||
<Link href="/" className="hidden xs:block">
|
||||
<p>Minecraft Utilities</p>
|
||||
</Link>
|
||||
</div>
|
||||
@ -29,7 +29,7 @@ export default function NavBar(): JSX.Element {
|
||||
<div className="flex-grow"></div>
|
||||
|
||||
<div className="mr-4 flex items-center gap-2">
|
||||
<div className="hidden md:block">
|
||||
<div className="hidden xs:block">
|
||||
<RedirectButton
|
||||
title="Star us on Github!"
|
||||
url="https://github.com/RealFascinated/minecraft-helper"
|
||||
|
@ -30,7 +30,7 @@ export function LookupPlayer(): JSX.Element {
|
||||
|
||||
return (
|
||||
<form className="flex gap-2 justify-center mt-2">
|
||||
<Input className="w-fit" placeholder="UUID / Username" value={player} onChange={setPlayerValue} />
|
||||
<Input className="w-fit" placeholder="UUID / Username" value={player} onChange={setPlayerValue} maxLength={36} />
|
||||
<Button type="submit" onClick={() => lookupPlayer()}>
|
||||
Lookup
|
||||
</Button>
|
||||
|
@ -32,10 +32,12 @@ export function LookupServer(): JSX.Element {
|
||||
};
|
||||
|
||||
return (
|
||||
<form className="flex gap-2 justify-center mt-2">
|
||||
<Input className="w-fit" placeholder="Hostname" value={hostname} onChange={setHostnameValue} />
|
||||
<Button onClick={() => lookupServer(ServerPlatform.Java)}>Java</Button>
|
||||
<Button onClick={() => lookupServer(ServerPlatform.Bedrock)}>Bedrock</Button>
|
||||
<form className="flex gap-2 justify-center items-center mt-2 flex-col xs:flex-row">
|
||||
<Input className="w-fit" placeholder="Hostname" value={hostname} onChange={setHostnameValue} maxLength={128} />
|
||||
<div className="flex gap-2 justify-center">
|
||||
<Button onClick={() => lookupServer(ServerPlatform.Java)}>Java</Button>
|
||||
<Button onClick={() => lookupServer(ServerPlatform.Bedrock)}>Bedrock</Button>
|
||||
</div>
|
||||
</form>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user