Skip to content

Commit

Permalink
Use transform instead of scale for scaling game icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Uular committed Apr 28, 2024
1 parent 0527279 commit 0d2765c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions src/lib/StreamLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,18 @@
:global(.row.overflow) {
overflow: visible;
}
:global(.debug) {
border: 1px solid red;
}
:global(.debug .debug) {
border-color: blue;
}
:global(.debug .debug .debug) {
border-color: greenyellow;
}
:global(.debug .debug .debug .debug) {
border-color: plum;
}
</style>
2 changes: 1 addition & 1 deletion src/lib/components/Incentives.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
font-size: var(--font-size-lg);
}
.icon {
scale: var(--setup-time-game-icon-scale, 1);
transform: scale(var(--setup-time-game-icon-scale, 1));
margin-left: -100px;
margin-top: 10px;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Upcoming.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
display: flex;
width: 160px;
margin: -10px -10px -30px -10px;
scale: var(--setup-time-game-icon-scale, 1);
transform: scale(var(--setup-time-game-icon-scale, 1));
}
.gamerow .col {
flex-grow: 1;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/themes/vj2024.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const vj2024base: LayoutTheme = {
--fourthree-gameicon-margin-left: -20px;
--fourthree-gameicon-margin-right: 0px;
--fourthree-gameicon-margin-bottom: 200px;
--setup-time-game-icon-scale: 0.8;
--setup-time-game-icon-scale: 80%;
--divider-size: 40px;
`
}
Expand Down

0 comments on commit 0d2765c

Please sign in to comment.