Skip to content

Commit

Permalink
SMA-33: minor changes in css
Browse files Browse the repository at this point in the history
  • Loading branch information
MatejFrnka committed Feb 6, 2024
1 parent 5879204 commit fc1eb25
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
19 changes: 12 additions & 7 deletions frontend/sportsmatch-app/src/components/EventHistoryItem.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
import { EventHistoryDTO } from '../generated/api'
import {EventHistoryDTO} from '../generated/api'

Check failure on line 1 in frontend/sportsmatch-app/src/components/EventHistoryItem.tsx

View workflow job for this annotation

GitHub Actions / test

Replace `EventHistoryDTO` with `·EventHistoryDTO·`
import '../styles/EventHistoryItem.css'
import Avatar from './Avatar'

interface EventHistoryProps {
eventHistoryDTO: EventHistoryDTO
}
function EventHistoryItem({ eventHistoryDTO }: EventHistoryProps) {

function EventHistoryItem({eventHistoryDTO}: EventHistoryProps) {
return (
<>
<div className="container-sm">
<div className="event-history-item">
<div className="match-status">VICTORY (uncorfirmed)</div>
<div className="user-side">
<div className="user-avatar">
<Avatar src="" alt="User" />
<div>
<div className="user-avatar">
<Avatar src="" alt="User"/>
</div>
<div className="user-name">You</div>
</div>
<div className="user-score">{eventHistoryDTO.userScore}</div>
</div>
<div className="user-score">{eventHistoryDTO.userScore}</div>

<div className="colon">
<p>:</p>
Expand All @@ -26,8 +29,10 @@ function EventHistoryItem({ eventHistoryDTO }: EventHistoryProps) {
<div className="opponent-score">
{eventHistoryDTO.opponentScore}
</div>
<div className="opponent-avatar">
<Avatar src="" alt="Opponent" />
<div>
<div className="opponent-avatar">
<Avatar src="" alt="Opponent" />
</div>
<div className="opponent-name">
{eventHistoryDTO.opponent?.name}
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/sportsmatch-app/src/styles/EventHistoryItem.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit fc1eb25

Please sign in to comment.