Skip to content

Commit

Permalink
changed data-count position
Browse files Browse the repository at this point in the history
  • Loading branch information
cookspam committed Jun 23, 2024
1 parent 625e9b1 commit a3f052c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
6 changes: 2 additions & 4 deletions input.css
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,8 @@
}
.chart span::after {
content: attr(data-count);
position: absolute;
bottom: calc(100% + var(--tooltip-offset));
left: 50%;
transform: translateX(-50%);
position: relative;
bottom: 30px;
padding: 2px 5px;
background: rgba(250, 192, 192, 0.75);
border-radius: 4px; /* Add rounded corners */
Expand Down
6 changes: 2 additions & 4 deletions public/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -2220,10 +2220,8 @@ h2:where(.dark, .dark *) {

.chart span::after {
content: attr(data-count);
position: absolute;
bottom: calc(100% + var(--tooltip-offset));
left: 50%;
transform: translateX(-50%);
position: relative;
bottom: 30px;
padding: 2px 5px;
background: rgba(250, 192, 192, 0.75);
border-radius: 4px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/leaderboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ pub fn SupplyStats(cx: Scope) -> Element {
let mut hourly_hour = date_time.hour();
if (date_time.minute() != 0) {
hourly_hour += 1;
if (hourly_hour > 24) {
if hourly_hour > 24 {
hourly_hour -= 24;
}
}
Expand Down

0 comments on commit a3f052c

Please sign in to comment.