refactor(nui): Styling and sizing changes

This commit is contained in:
Luke
2022-03-20 19:58:52 +01:00
parent 5a556f3764
commit 3148ef6b1f
6 changed files with 27 additions and 8 deletions

View File

@@ -67,8 +67,10 @@ const Progressbar: React.FC = () => {
<Progress
value={100}
height="2.8rem"
borderRadius="sm"
fontFamily="Inter"
flex="1 1 auto"
boxShadow="lg"
onAnimationEnd={progressComplete}
sx={
!cancelled
@@ -76,6 +78,7 @@ const Progressbar: React.FC = () => {
// really scuffed solution but works, wonder if there's a better way to do this?
"> div:first-of-type": {
animation: `progress-bar linear ${duration}ms`,
borderRadius: "none",
},
}
: {
@@ -86,7 +89,9 @@ const Progressbar: React.FC = () => {
}
}
>
<ProgressLabel fontSize={20}>{label}</ProgressLabel>
<ProgressLabel fontSize={22} fontWeight="light">
{label}
</ProgressLabel>
</Progress>
</ScaleFade>
</Box>