aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-23 02:23:21 -0800
committerFuwn <[email protected]>2026-01-23 02:23:21 -0800
commitb4be278a67896f3a931ff99a6eb37518c0af3995 (patch)
treeebe178bd2bc921397c7427f4f24975e44235dfb7
parentrefactor: Migrate event handlers to new Svelte 5 syntax (diff)
downloaddue.moe-b4be278a67896f3a931ff99a6eb37518c0af3995.tar.xz
due.moe-b4be278a67896f3a931ff99a6eb37518c0af3995.zip
fix(Loading:Grid): Use math.ceil instead of deprecated global ceil function
-rw-r--r--src/lib/Loading/Grid.svelte4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Loading/Grid.svelte b/src/lib/Loading/Grid.svelte
index 73a6d284..233052fc 100644
--- a/src/lib/Loading/Grid.svelte
+++ b/src/lib/Loading/Grid.svelte
@@ -9,6 +9,8 @@
</div>
<style lang="scss">
+ @use 'sass:math';
+
.grid {
display: inline-block;
position: relative;
@@ -35,7 +37,7 @@
@for $i from 1 through 9 {
.grid div:nth-child(#{$i}) {
- $row: ceil(calc($i / 3));
+ $row: math.ceil(calc($i / 3));
$column: column($i);
top: 6px + ($row - 1) * 20px;