Skip to content

Commit

Permalink
style(user): reduz tamanho do user Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
danicaus committed Sep 7, 2024
1 parent 1b61573 commit 51e2ac2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/User/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function TVUser({ user }: { user: IUser }) {
return (
<div className={`flex flex-col items-center justify-center ${user.isOnline ? 'opacity-100' : 'opacity-20'}`} >
{userHasStar && <p className="mb-1 tv:text-[1.75rem]">⭐️</p>}
<div className={`relative w-[12.125rem] h-[12.125rem]`}>
<div className={`relative w-[11.5rem] h-[11.5rem]`}>
<TVActivations userActivations={user.activations} />
<div
className="baseUser">
Expand Down
28 changes: 14 additions & 14 deletions src/components/User/user.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
transform: translate(-50%, -50%);

@media screen and (min-width: 1080px) {
width: 70px;
height: 70px;
width: 60px;
height: 60px;
}
}

Expand All @@ -32,8 +32,8 @@

@media screen and (min-width: 1080px) {
border-width: 10px;
width: 98px;
height: 98px;
width: 88px;
height: 88px;
}

&.incomplete, &.GAME {
Expand All @@ -43,7 +43,7 @@

@media screen and (min-width: 1080px) {
$t: 10;
$w: 98;
$w: 88;
clip-path: path("M 0, #{$w*0.5} A #{$w*0.5} #{$w*0.5} 0 0 1 #{$w} #{$w*0.5} L #{$w - $t} #{$w*0.5} A #{($w - $t*2) *.5} #{($w - $t*2) *.5} 0 0 0 #{$t} #{$w*0.5} A #{($w - $t*2) *.5} #{($w - $t*2) *.5} 0 0 0 #{$w - $t} #{$w*0.5} L #{$w} #{$w*0.5} A #{$w*0.5} #{$w*0.5} 0 0 1 0 #{$w*0.5} Z");
}
}
Expand All @@ -63,8 +63,8 @@

@media screen and (min-width: 1080px) {
border-width: 10px;
width: 130px;
height: 130px;
width: 120px;
height: 120px;
}

&.incomplete, &.GAME {
Expand All @@ -74,7 +74,7 @@

@media screen and (min-width: 1080px) {
$t: 10;
$w: 130;
$w: 120;
clip-path: path("M 0, #{$w*0.5} A #{$w*0.5} #{$w*0.5} 0 0 1 #{$w} #{$w*0.5} L #{$w - $t} #{$w*0.5} A #{($w - $t*2) *.5} #{($w - $t*2) *.5} 0 0 0 #{$t} #{$w*0.5} A #{($w - $t*2) *.5} #{($w - $t*2) *.5} 0 0 0 #{$w - $t} #{$w*0.5} L #{$w} #{$w*0.5} A #{$w*0.5} #{$w*0.5} 0 0 1 0 #{$w*0.5} Z");
}
}
Expand All @@ -93,8 +93,8 @@

@media screen and (min-width: 1080px) {
border-width: 10px;
width: 162px;
height: 162px;
width: 152px;
height: 152px;
}

&.incomplete, &.GAME {
Expand All @@ -104,7 +104,7 @@

@media screen and (min-width: 1080px) {
$t: 10;
$w: 162;
$w: 152;
clip-path: path("M 0, #{$w*0.5} A #{$w*0.5} #{$w*0.5} 0 0 1 #{$w} #{$w*0.5} L #{$w - $t} #{$w*0.5} A #{($w - $t*2) *.5} #{($w - $t*2) *.5} 0 0 0 #{$t} #{$w*0.5} A #{($w - $t*2) *.5} #{($w - $t*2) *.5} 0 0 0 #{$w - $t} #{$w*0.5} L #{$w} #{$w*0.5} A #{$w*0.5} #{$w*0.5} 0 0 1 0 #{$w*0.5} Z");
}
}
Expand All @@ -125,8 +125,8 @@

@media screen and (min-width: 1080px) {
border-width: 10px;
width: 194px;
height: 194px;
width: 184px;
height: 184px;
}

&.incomplete, &.GAME {
Expand All @@ -136,7 +136,7 @@

@media screen and (min-width: 1080px) {
$t: 10;
$w: 194;
$w: 184;
clip-path: path("M 0, #{$w*0.5} A #{$w*0.5} #{$w*0.5} 0 0 1 #{$w} #{$w*0.5} L #{$w - $t} #{$w*0.5} A #{($w - $t*2) *.5} #{($w - $t*2) *.5} 0 0 0 #{$t} #{$w*0.5} A #{($w - $t*2) *.5} #{($w - $t*2) *.5} 0 0 0 #{$w - $t} #{$w*0.5} L #{$w} #{$w*0.5} A #{$w*0.5} #{$w*0.5} 0 0 1 0 #{$w*0.5} Z");
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/UsersDashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default function UsersDashboard() {
const createBall = (user: IUser) => {
const containerWidth = containerRef.current!.clientWidth;
const containerHeight = containerRef.current!.clientHeight;
const userActivationDiameter = 194;
const userActivationDiameter = 184;

const size =
windowWidth > 3000
Expand Down

0 comments on commit 51e2ac2

Please sign in to comment.