Skip to content

Commit

Permalink
Merge pull request #1031 from hydephp/refactor-documentation-sidebar-…
Browse files Browse the repository at this point in the history
…height-to-be-dynamic

Refactor documentation sidebar height to be dynamic
  • Loading branch information
caendesilva committed Feb 15, 2023
2 parents 42f6632 + 716c669 commit 6ece9ac
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<aside id="sidebar" x-cloak :class="sidebarOpen ? 'visible left-0' : 'invisible -left-64 md:visible md:left-0'"
class="bg-gray-100 dark:bg-gray-800 dark:text-gray-200 h-screen w-64 fixed z-30 md:block shadow-lg md:shadow-none transition-all duration-300">
class="bg-gray-100 dark:bg-gray-800 dark:text-gray-200 h-screen w-64 fixed z-30 md:flex flex-col shadow-lg md:shadow-none transition-all duration-300">
<header id="sidebar-header" class="h-16">
@include('hyde::components.docs.sidebar-brand')
</header>
<nav id="sidebar-navigation"
@class(['p-4 overflow-y-auto border-y border-gray-300 dark:border-[#1b2533]', config('docs.sidebar_footer', true) ? 'h-[calc(100vh_-_8rem)]': 'h-[calc(100vh_-_4rem)]'])>
class="p-4 overflow-y-auto border-y border-gray-300 dark:border-[#1b2533]">
@php
$sidebar = \Hyde\Framework\Features\Navigation\DocumentationSidebar::create();
@endphp
Expand All @@ -16,7 +16,7 @@ class="bg-gray-100 dark:bg-gray-800 dark:text-gray-200 h-screen w-64 fixed z-30
@endif
</nav>
@if(config('docs.sidebar_footer', true))
<footer id="sidebar-footer" class="h-16 absolute p-4 w-full bottom-0 left-0 text-center leading-8">
<footer id="sidebar-footer" class="h-16 p-4 w-full mt-auto bottom-0 left-0 text-center leading-8">
@include('hyde::components.docs.sidebar-footer')
</footer>
@endif
Expand Down

0 comments on commit 6ece9ac

Please sign in to comment.