Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii authored Mar 11, 2024
1 parent 30e734e commit 4805f22
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions website/src/components/DeviceListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { Device } from '../sdk/devices_pb';
import { grpc } from '../Api';
import { observer } from 'mobx-react';
import { confirm } from './Present';
import { IconButton } from '@mui/material';
import { IconButton, Typography } from '@mui/material';

interface Props {
device: Device.AsObject;
Expand All @@ -41,8 +41,12 @@ export const DeviceListItem = observer(
const device = this.props.device;
return (
<Card>
<CardHeader
title={device.name}
<CardHeader
title={
<Typography style={{ wordBreak: "break-word" }}>
{device.name}
</Typography>
}
avatar={
<Avatar style={{ backgroundColor: device.connected ? '#76de8a' : '#bdbdbd' }}>
{/* <DonutSmallIcon /> */}
Expand Down

0 comments on commit 4805f22

Please sign in to comment.