Skip to content

Commit

Permalink
fix(BETA-218): fix hover style for last cell in routes table
Browse files Browse the repository at this point in the history
  • Loading branch information
kabaros committed Feb 12, 2025
1 parent b8a7307 commit c301cc7
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 30 deletions.
4 changes: 2 additions & 2 deletions src/components/route-list/RoutesTable.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.routeActionsCell {
display: flex;
gap: 10px;
text-wrap: nowrap
}
text-wrap: nowrap;
}
59 changes: 31 additions & 28 deletions src/components/route-list/RoutesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,34 +94,37 @@ const RoutesTable: React.FC<RoutesTableProps> = ({
})}
</ul>
</DataTableCell>
<DataTableCell
align="right"
className={styles.routeActionsCell}
>
<Switch
onChange={({ checked: enabled }) =>
toggleRoute(route, !enabled)
}
checked={!route.disabled}
label={i18n.t('Enable route')}
/>
<Button
icon={<IconLaunch16 />}
disabled={route.disabled}
small
onClick={() => showTestRouteModal(route)}
>
{i18n.t('Test route')}
</Button>{' '}
<RouteActions
showSharingDialog={() =>
showSharingDialog(route)
}
showEditRouteModal={() =>
showEditRouteModal(route)
}
deleteRoute={() => deleteRoute(route.id)}
/>
<DataTableCell align="right">
<div className={styles.routeActionsCell}>
<Switch
onChange={({ checked: enabled }) =>
toggleRoute(route, !enabled)
}
checked={!route.disabled}
label={i18n.t('Enable route')}
/>
<Button
icon={<IconLaunch16 />}
disabled={route.disabled}
small
onClick={() =>
showTestRouteModal(route)
}
>
{i18n.t('Test route')}
</Button>{' '}
<RouteActions
showSharingDialog={() =>
showSharingDialog(route)
}
showEditRouteModal={() =>
showEditRouteModal(route)
}
deleteRoute={() =>
deleteRoute(route.id)
}
/>
</div>
</DataTableCell>
</DataTableRow>
)
Expand Down

0 comments on commit c301cc7

Please sign in to comment.