tweak widget layouts for mobile

This commit is contained in:
Ben Phelps 2022-09-11 21:02:33 +03:00
parent ad53119088
commit ffbb1f5f0b
6 changed files with 17 additions and 16 deletions

View file

@ -4,8 +4,8 @@ import Memory from "./memory";
export default function Resources({ options }) {
return (
<div className="flex flex-col max-w:full basis-1/2 sm:basis-auto self-center">
<div className="flex flex-row space-x-4 self-center">
<div className="flex flex-col max-w:full sm:basis-auto self-center m-auto flex-wrap">
<div className="flex flex-row self-center flex-wrap justify-between">
{options.cpu && <Cpu />}
{options.memory && <Memory />}
{Array.isArray(options.disk)