first iteration of basic layout

This commit is contained in:
csawatzky 2025-11-03 16:41:26 -06:00
parent 65cb7acbab
commit 487c8617e4
5 changed files with 100 additions and 23 deletions

View file

@ -222,7 +222,7 @@ export default function DeviceScannedComponents(props: Props){
<React.Fragment>
<Card raised sx={{padding: 1}}>
{scannedI2C !== undefined &&
<React.Fragment>
<Box marginBottom={5}>
<Box justifyContent="space-between" display="flex">
<Typography sx={{fontWeight: 650}}>
I2C Sensors
@ -244,10 +244,10 @@ export default function DeviceScannedComponents(props: Props){
</Typography>
</Box>
}
</React.Fragment>
</Box>
}
{scannedOneWire.length > 0 &&
<Box marginTop={10}>
<Box>
<Box justifyContent="space-between" display="flex">
<Typography sx={{fontWeight: 650}}>
Pin Port Sensors
@ -265,8 +265,8 @@ export default function DeviceScannedComponents(props: Props){
}
})
return(
<Box key={i} padding={2} paddingBottom={0}>
<Box display="flex" justifyContent="space-between">
<Box key={i} paddingX={2}>
<Box display="flex" justifyContent="space-between" alignItems={"center"}>
<Typography>Port: {portLabel}</Typography>
<Button variant="contained" color="primary" onClick={()=>{
removeScan(scan.key)