add highlight logic to search card

This commit is contained in:
2025-05-29 13:07:49 +03:00
parent 2e820fb041
commit 91c6693190
4 changed files with 15 additions and 6 deletions

View File

@@ -119,7 +119,7 @@ export default function UserRoutes() {
const getBorderColor = (route: Route) => {
if (route.is_highlighted) {
return 'border-yellow-500'
return 'border-yellow-500 border-2'
}
return 'border'
}
@@ -142,7 +142,7 @@ export default function UserRoutes() {
{routes.map(route => (
<div
key={route.id}
className={`space-y-4 rounded-2xl border bg-white p-6 transition-shadow hover:shadow-md ${getBorderColor(route)}`}
className={`space-y-4 rounded-2xl bg-white p-6 transition-shadow hover:shadow-md ${getBorderColor(route)}`}
>
<div className="flex items-center justify-between">
<div className="text-sm text-gray-500">ID маршрута: #{route.id}</div>