Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing leaderboard dimension table for certain measures #2015

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@
</script>

<button
transition:slide|local={{ duration: 200 }}
on:mouseover={onHover}
on:mouseleave={onLeave}
on:focus={onHover}
class="block flex flex-row w-full text-left transition-color"
on:blur={onLeave}
on:click
class="block flex flex-row w-full text-left transition-color"
on:focus={onHover}
on:mouseleave={onLeave}
on:mouseover={onHover}
transition:slide|local={{ duration: 200 }}
>
{#if showIcon}
<div style:width="22px" style:height class="grid place-items-center">
Expand All @@ -60,18 +60,18 @@
{/if}
<BarAndLabel
{color}
{value}
showHover
justify={false}
showBackground={false}
showHover
tweenParameters={{ duration: 200 }}
justify={false}
{value}
>
<div class="grid leaderboard-entry items-center gap-x-3" style:height>
<div
class="justify-self-start text-left w-full text-ellipsis overflow-hidden whitespace-nowrap"
>
<div>
<slot name="title" {isActive} />
<slot {isActive} name="title" />
</div>
</div>
<div class="justify-self-end overflow-hidden ui-copy-number">
Expand All @@ -82,7 +82,10 @@
</button>
<!-- if the value is greater than 100%, we should add this little serration -->
{#if value > 1.001}
<div transition:fly={{ duration: 200, x: 20 }}>
<div
style="position: relative"
transition:fly|local={{ duration: 200, x: 20 }}
>
<svg
style="
position:absolute;
Expand Down