Skip to content

Commit

Permalink
fix: course unit width
Browse files Browse the repository at this point in the history
  • Loading branch information
jouwdan committed Mar 12, 2023
1 parent 21a774d commit b6a8eec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions apps/course/src/routes/course/[courseid]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const manifestString = Buffer.from(JSON.stringify(manifest), 'utf8').toString('b
{/if}
</svelte:head>

<div class="w-11/12 mx-auto">
{#each data.course.units as unit}
<UnitCard unit="{unit}" />
{/each}
Expand All @@ -111,3 +112,4 @@ const manifestString = Buffer.from(JSON.stringify(manifest), 'utf8').toString('b
{:else}
<CardDeck los="{data.course.allLos}" border />
{/if}
</div>
2 changes: 1 addition & 1 deletion packages/tutors-ui/lib/Organisms/CardDeck/CardDeck.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</script>

{#if los.length}
<div class="bg-surface-100-800-token mx-auto mb-2 w-11/12 max-w-full place-items-center overflow-hidden rounded-xl p-4 {border ? bordered : unbordered}">
<div class="bg-surface-100-800-token mx-auto mb-2 place-items-center overflow-hidden rounded-xl p-4 {border ? bordered : unbordered}">
<div class="flex flex-wrap justify-center">
{#each orderedLos as lo}
<Card lo="{lo}" />
Expand Down

0 comments on commit b6a8eec

Please sign in to comment.