Skip to content

Commit

Permalink
style: fix layout when lesson content does not fit available space
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesx00 committed Dec 18, 2024
1 parent 7a556f8 commit b8f9e73
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 194 deletions.
2 changes: 1 addition & 1 deletion _includes/layouts/lesson.njk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ layout: layouts/base.njk
<i class="far fa-bars text-xl"></i>
</button>
<div class="py-6 px-4 bg-gray-50 dark:bg-zinc-900 min-h-screen">
<div class="grid md:flex gap-4 justify-center">
<div class="grid md:flex gap-4 md:justify-center">
<div class="md:flex-1 max-w-prose overflow-y-hidden">
<div class="mb-6 mx-auto bg-white dark:bg-zinc-950 p-4 {% if not code_editor %}max-w-prose{% endif %}">
<p class="text-gray-500 dark:text-slate-300 text-xs font-light mb-2">
Expand Down
Loading

0 comments on commit b8f9e73

Please sign in to comment.