Skip to content

Commit

Permalink
fix(FT-21): mobile view layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jonassimoen committed Nov 30, 2023
1 parent 1bac9f2 commit 041569a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
22 changes: 15 additions & 7 deletions src/components/Player/PlayerStyle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ export const PlayerStyle = styled.div`
position: relative;
cursor: pointer;
text-align: ${(props: any) => !props.player ? "center" : "inherit"};
width: 100px;
height: 60px;
width: 70px;
height: 50px;
@media ${mediaQueries.mobileM} {
width: 85px;
width: 60px;
height: 55px;
}
Expand All @@ -21,7 +21,7 @@ export const PlayerStyle = styled.div`
.position-label {
position: absolute;
top: 135%;
top: 125%;
margin: 0 auto;
text-align: center;
color: white;
Expand All @@ -32,10 +32,18 @@ export const PlayerStyle = styled.div`
` as any;

export const PlayerBg = styled.img`
position: relative;
width: 50px;
height: 50px;
position: absolute;
max-width: 55%;
opacity: ${(props: any) => props.inactive ? 0.4 : 1};
margin: 0 auto;
inset: 5% 0px 25%;
background-size: 100%;
background-position-x: 50%;
background-image: url("${(props: any) => props.src}");
@media ${mediaQueries.mobileM} {
max-width: 65%;
}
` as any;

export const Badge = styled.div`
Expand Down
5 changes: 4 additions & 1 deletion src/components/PlayerList/PlayerListStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,15 @@ export const TableStyle = styled(Table)`
}
.avatar-container {
margin-bottom: -15px;
margin-bottom: -10px;
}
.ant-table-tbody {
.ant-table-row {
background-color: #FFF;
> td:first-child {
padding: 0px 10px 0px 15px;
}
> td {
border: none;
padding: 3.5px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Team/TeamStyle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const TeamStyle = styled.div`
@media ${mediaQueries.mobileM} {
padding: 0px 0 30px;
height: ${(props: TeamProps) => (props.heightRatio / props.widthRatio) * 1.5 * 375}px;
height: ${(props: TeamProps) => (props.heightRatio / props.widthRatio) * 2 * 350}px;
margin: ${(props: TeamProps) => (props.centerAligned ? "0 auto;" : "inherit")};
}
Expand Down

0 comments on commit 041569a

Please sign in to comment.