Skip to content

Commit

Permalink
Merge pull request #117 from studentinovisad/mk/fix/smallstuffs
Browse files Browse the repository at this point in the history
fix: small stuffs*
  • Loading branch information
matijakljajic authored Dec 31, 2024
2 parents fdba7d4 + c1051ba commit da43f8f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Aleksa Siriški
Copyright (c) 2024 Students of Novi Sad

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/custom/sidebar/admin-sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</Sidebar.Group>
</Sidebar.Content>
<SidebarFooter>
<Button variant="link" href="https://github.com/aleksasiriski/indexomator">
<Button variant="link" href="https://github.com/studentinovisad/indexomator">
<Github /> <span>Contribute</span>
</Button>
</SidebarFooter>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/custom/sidebar/app-sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
</Sidebar.Group>
</Sidebar.Content>
<SidebarFooter>
<Button variant="link" href="https://github.com/aleksasiriski/indexomator">
<Button variant="link" href="https://github.com/studentinovisad/indexomator">
<Github /> <span>Contribute</span>
</Button>
</SidebarFooter>
Expand Down
3 changes: 2 additions & 1 deletion src/routes/(dashboard)/columns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const columns: ColumnDef<Person>[] = [
id: row.getVisibleCells()[0].getValue() as number,
type: row.getVisibleCells()[1].getValue() as PersonType
});
}
},
enableSorting: false
}
];
12 changes: 7 additions & 5 deletions src/routes/(dashboard)/data-table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
});
</script>

<div class="mx-auto my-5 max-w-[90vw] rounded-md border">
<div class="mx-auto my-5 w-full rounded-md border">
<Table.Root>
<Table.Header>
{#each table.getHeaderGroups() as headerGroup (headerGroup.id)}
Expand All @@ -69,11 +69,11 @@
role="button"
tabindex="0"
onclick={() => {
header.column.toggleSorting(header.column.getIsSorted() === 'asc');
header.column.toggleSorting();
}}
onkeydown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
header.column.toggleSorting(header.column.getIsSorted() === 'asc');
header.column.toggleSorting();
}
}}
>
Expand All @@ -82,9 +82,11 @@
context={header.getContext()}
/>
{#if header.column.getIsSorted() === 'asc'}
<span>↑</span>
<span class="m-1">↑</span>
{:else if header.column.getIsSorted() === 'desc'}
<span>↓</span>
<span class="m-1">↓</span>
{:else}
<span></span>
{/if}
</div>
{/if}
Expand Down
4 changes: 2 additions & 2 deletions src/routes/admin/register/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@
size="icon"
>
{#if showPassword}
<Invisible />
{:else}
<Visible />
{:else}
<Invisible />
{/if}
<span class="sr-only">Show/Hide Pass</span>
</Button>
Expand Down
6 changes: 3 additions & 3 deletions src/routes/login/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
size="icon"
>
{#if showPassword}
<Invisible />
{:else}
<Visible />
{:else}
<Invisible />
{/if}
<span class="sr-only">Show/Hide Pass</span>
</Button>
Expand Down Expand Up @@ -108,7 +108,7 @@
<Card.Footer>
<p class="w-full px-2 text-center text-sm text-muted-foreground">
This software is licensed under the <a
href="https://raw.githubusercontent.com/aleksasiriski/indexomator/refs/heads/main/LICENSE"
href="https://raw.githubusercontent.com/studentinovisad/indexomator/refs/heads/main/LICENSE"
class="underline underline-offset-4 hover:text-primary"
>
MIT
Expand Down

0 comments on commit da43f8f

Please sign in to comment.