Skip to content

Commit

Permalink
Move things around
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jan 3, 2024
1 parent 7ac10ee commit 174d880
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/lib/components/ItemList.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

<script lang="ts" generics="T extends classTypes[keyof classTypes]">
import { dev } from '$app/environment';
import { settings } from '$lib/settings';
import type { classTypes } from '$lib/data/contentManager';
import { onMount } from 'svelte';
Expand All @@ -28,17 +27,11 @@
selected ??= items[0];
let remainingSpan = Math.max(
1,
columns.filter((col) => col.enabled).reduce((a, b) => Math.max(a, 0) - Math.max(b.span, 0), 24)
);
let search = '';
$: if (dev) {
console.log(selected);
}
let search = '';
let filteredItems = items;
$: {
filteredItems = items.filter((item) => {
Expand Down Expand Up @@ -101,6 +94,11 @@
if (found) selected = found;
}
let remainingSpan = Math.max(
1,
columns.filter((col) => col.enabled).reduce((a, b) => Math.max(a, 0) - Math.max(b.span, 0), 24)
);
let headerHeight = 50;
</script>

Expand Down

0 comments on commit 174d880

Please sign in to comment.