Skip to content
Snippets Groups Projects
Commit 87319ede authored by Frank Duncan's avatar Frank Duncan
Browse files

Fix alpinejs discrepencies, typos in review score

alpinejs, when using x-show, doesn't need the element to be hidden, as
it will take care of that.  Also, x-clock should be x-cloak
parent 5de367a2
No related branches found
No related tags found
1 merge request!114Fix score box height
......@@ -20,10 +20,10 @@
<div class="relative my-8" x-data="reviewScore">
<!-- Review score sticky display -->
<div class="hidden absolute top-0 right-0 h-full lg:block">
<div class="absolute top-0 right-0 h-full lg:block">
<div
class="inline-block sticky top-1 py-1.5 px-3 mt-1 font-semibold text-center text-white bg-arsenic"
x-clock
x-cloak
x-show="showScore"
>
{% trans "Score:" %} <span x-text="totalScore">-</span>
......@@ -71,7 +71,7 @@
</button>
{% endif %}
<div class="text-fg-muted" x-clock x-show="showScore">
<div class="text-fg-muted" x-cloak x-show="showScore">
{% trans "Total Score:" %} <span x-text="totalScore"></span>
</div>
</div>
......
......@@ -30,10 +30,10 @@
{% include "forms/includes/form_errors.html" with form=form %}
<section class="flex relative justify-between my-8" x-data="reviewScore">
<div class="hidden absolute top-0 right-0 h-full lg:block">
<div class="absolute top-0 right-0 h-full lg:block">
<div
class="inline-block sticky top-1 py-1.5 px-3 mt-1 font-semibold text-center text-white bg-arsenic float-end"
x-clock
x-cloak
x-show="showScore"
>
{% trans "Score:" %} <span x-text="totalScore">-</span>
......@@ -72,7 +72,7 @@
<button class="button button--primary min-w-48" type="submit" name="submit">
{% trans "Submit" %}
</button>
<div class="text-fg-muted" x-clock x-show="showScore">
<div class="text-fg-muted" x-cloak x-show="showScore">
{% trans "Total Score:" %} <span x-text="totalScore"></span>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment