Skip to content

Commit

Permalink
fix: timeline display (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio authored Nov 23, 2024
1 parent e79728f commit 8f4144b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
6 changes: 0 additions & 6 deletions resources/views/components/layouts/base.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
@filamentStyles
@vite('resources/css/app.css')

<style>
[x-cloak] {
display: none !important;
}
</style>

<x-site.analytics />
</head>

Expand Down
10 changes: 5 additions & 5 deletions resources/views/components/timeline/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
x-transition:leave="transition-opacity ease-linear duration-300"
x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0"
class="fixed inset-0 bg-gray-900/80 z-40 md:hidden"
class="fixed inset-0 z-40 bg-gray-900/80 md:hidden"
aria-hidden="true"
x-cloak></div>

<div
@keydown.window.escape="sidebarOpen = false"
class="fixed inset-y-0 flex flex-row-reverse w-full z-50 md:w-80 items-stretch md:translate-x-0 md:relative transition ease-in-out duration-300 transform"
class="fixed inset-y-0 z-50 flex flex-row-reverse items-stretch w-full transition duration-300 ease-in-out transform -translate-x-full md:w-80 md:translate-x-0 md:relative"
x-bind:class="{
'-translate-x-full': !sidebarOpen,
'translate-x-0': sidebarOpen
}">

Expand All @@ -27,15 +26,16 @@ class="fixed inset-y-0 flex flex-row-reverse w-full z-50 md:w-80 items-stretch m
x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0"
@@click="sidebarOpen = false"
class="relative flex w-16 justify-center items-start pt-5">
class="relative flex items-start justify-center w-16 pt-5"
x-cloak>
<button type="button" class="-m-2.5 p-2.5" @@click="sidebarOpen = false">
<span class="sr-only">Close sidebar</span>
<x-ri-close-line class="w-6 h-6 text-white" />
</button>
</div>

<nav
class="px-6 py-8 bg-white border-r border-gray-200 sm:py-10 gap-y-5 grow flex-1 overflow-y-auto" wire:scroll>
class="flex-1 px-6 py-8 overflow-y-auto bg-white border-r border-gray-200 sm:py-10 gap-y-5 grow" wire:scroll>
<ul class="flex flex-col flex-1">
@foreach ($years as $year => $electionTypes)
<li class="relative pb-8 pl-8 group">
Expand Down

0 comments on commit 8f4144b

Please sign in to comment.