Peer table fixes

This commit is contained in:
2024-02-29 23:32:07 +01:00
parent 959127ac2c
commit 63d43f9939
2 changed files with 36 additions and 25 deletions

View File

@@ -6,10 +6,12 @@ export let sort_func
</script>
<button class:button_highlight={active_field === field} on:click={() => sort_func(field)}>
{#if asc}
{:else}
{#if active_field === field}
{#if asc}
{:else}
{/if}
{/if}
<slot></slot>
</button>
@@ -17,6 +19,6 @@ export let sort_func
<style>
button {
margin: 0;
line-height: 1.2em;
line-height: 1em;
}
</style>