diff --git a/frontend/sportsmatch-app/src/components/EventHistoryItem.tsx b/frontend/sportsmatch-app/src/components/EventHistoryItem.tsx index b0c8f604..57a80649 100644 --- a/frontend/sportsmatch-app/src/components/EventHistoryItem.tsx +++ b/frontend/sportsmatch-app/src/components/EventHistoryItem.tsx @@ -1,23 +1,26 @@ -import { EventHistoryDTO } from '../generated/api' +import {EventHistoryDTO} from '../generated/api' import '../styles/EventHistoryItem.css' import Avatar from './Avatar' interface EventHistoryProps { eventHistoryDTO: EventHistoryDTO } -function EventHistoryItem({ eventHistoryDTO }: EventHistoryProps) { + +function EventHistoryItem({eventHistoryDTO}: EventHistoryProps) { return ( <>
VICTORY (uncorfirmed)
-
- +
+
+ +
You
+
{eventHistoryDTO.userScore}
-
{eventHistoryDTO.userScore}

:

@@ -26,8 +29,10 @@ function EventHistoryItem({ eventHistoryDTO }: EventHistoryProps) {
{eventHistoryDTO.opponentScore}
-
- +
+
+ +
{eventHistoryDTO.opponent?.name}
diff --git a/frontend/sportsmatch-app/src/styles/EventHistoryItem.css b/frontend/sportsmatch-app/src/styles/EventHistoryItem.css index acc7415c..6eba44f7 100644 --- a/frontend/sportsmatch-app/src/styles/EventHistoryItem.css +++ b/frontend/sportsmatch-app/src/styles/EventHistoryItem.css @@ -30,7 +30,7 @@ .user-side { grid-column: 1; display: grid; - grid-template-columns: 5fr 1fr; + grid-template-columns: 3fr 1fr 1fr; padding: 9px; text-align: center; grid-template-rows: 2fr 1fr; @@ -39,7 +39,7 @@ .opponent-side { grid-column: 3; display: grid; - grid-template-columns: 1fr 5fr; + grid-template-columns: 1fr 1fr 3fr; padding: 9px; text-align: center; grid-template-rows: 2fr 1fr;