Fix min hieight of table row (#29)

This commit is contained in:
lucas lelievre
2022-11-07 02:57:20 +01:00
committed by GitHub
parent dd8e9a623f
commit cef818b430

View File

@@ -67,7 +67,7 @@ export function RowContainer({
onMouseEnter={onMouseOver}
onMouseLeave={onMouseOut}
className={classNames(
'h-14 flex flex-col justify-center px-3',
'min-h-[50px] flex flex-col justify-center px-3',
rounded === 'left' && 'rounded-l-lg',
rounded === 'right' && 'rounded-r-lg',
hover ? 'bg-background-50' : 'bg-background-60'
@@ -87,8 +87,6 @@ export function TrackersTable({
}) {
const [hoverTracker, setHoverTracker] = useState<TrackerIdT | null>(null);
console.log(flatTrackers);
const trackerEqual = (id: TrackerIdT | null) =>
id?.trackerNum == hoverTracker?.trackerNum &&
(!id?.deviceId || id.deviceId.id == hoverTracker?.deviceId?.id);