Skip to content

Commit

Permalink
Add variable for grid sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanhollman committed Feb 23, 2024
1 parent c33d9af commit b2fbfe4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/StreakView/StreakView.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

& > * {
flex: 1;
max-width: var(--streak-grid-item-max-width);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/StreakView/User/User.module.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
gap: 10px;

.avatar {
width: 200px;
width: calc(var(--streak-grid-item-max-width) / 2);
border-radius: 16px;
}
}
4 changes: 4 additions & 0 deletions src/styles.less
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
:root {
--streak-grid-item-max-width: 400px;
}

body {
min-height: 100vh;
}
Expand Down

0 comments on commit b2fbfe4

Please sign in to comment.