Skip to content

Commit

Permalink
Sorted playlist by order; added playlist visibility and small fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitkonikov committed Feb 19, 2024
1 parent 3cf081c commit 0d7061b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion cinefolio2/src/components/Playlist.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@
margin-bottom: 0em;
}
}
</style>
</style>
2 changes: 1 addition & 1 deletion cinefolio2/src/components/Slide.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
background-color: rgba(0, 0, 0, 0.8);
}
.slide-overlay, .slide-thumb-overlay {
.slide-overlay {
background-color: black;
opacity: 0.6;
position: absolute;
Expand Down
6 changes: 0 additions & 6 deletions cinefolio2/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
import { describe, it, expect } from 'vitest';

describe('sum test', () => {
it('adds 1 + 2 to equal 3', () => {
expect(1 + 2).toBe(3);
});
});
7 changes: 6 additions & 1 deletion cinefolio2/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
}).then((response) => response.json())
.then((value) => {
playlists = value.playlists;
playlists.sort((a, b) => {
return a.order - b.order;
});
});
});
</script>
Expand All @@ -23,7 +26,9 @@

<div id="videos-container-center">
{#each playlists as playlist}
<Playlist playlist={playlist}/>
{#if playlist.visible}
<Playlist playlist={playlist}/>
{/if}
{/each}
</div>
</main>
Expand Down

0 comments on commit 0d7061b

Please sign in to comment.