Convert multiple pages into SPA
This commit is contained in:
@@ -5,7 +5,7 @@ export let asc = true
|
||||
export let sort_func: (field: string) => void
|
||||
</script>
|
||||
|
||||
<button class:button_highlight={active_field === field} on:click={() => sort_func(field)}>
|
||||
<button on:click={() => sort_func(field)}>
|
||||
{#if active_field === field}
|
||||
{#if asc}↓{:else}↑{/if}
|
||||
{/if}
|
||||
@@ -18,6 +18,6 @@ button {
|
||||
margin: 0;
|
||||
line-height: 1em;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
text-align: initial;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user