M content/bevy-dice/_index.md => content/bevy-dice/_index.md +3 -1
@@ 12,10 12,12 @@ id = "bevy-dice"
status = "active"
git = "https://git.src.quest/~liljamo/bevy_dice"
+
+no_sticky = true
+++
<div class="absolute left-0 w-screen flex flex-col items-center">
- <div class="flex flex-col max-w-5xl w-screen rounded-xl p-4">
+ <div class="flex flex-col max-w-5xl w-screen max-h-160 h-screen rounded-xl p-4">
<canvas id="bevy-dice-demo" class="rounded-xl"></canvas>
</div>
</div>
M templates/layouts/base.html => templates/layouts/base.html +4 -0
@@ 27,7 27,11 @@
</head>
<body>
<main class="flex flex-col items-center h-full min-h-screen bg-background-orig">
+ {% if this.extra.no_sticky %}
+ <div class="flex justify-center top-0 w-full h-min z-50">
+ {% else %}
<div class="flex justify-center sticky top-0 w-full h-min z-50">
+ {% endif %}
<div class="absolute max-w-5xl w-full h-fit p-8 pointer-events-none">
<div class="w-full h-full pointer-events-auto
p-3 rounded-xl