mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 21:34:03 +00:00
esc key
This commit is contained in:
parent
1d3ab71c50
commit
dd3c8276e2
4 changed files with 13 additions and 7 deletions
|
|
@ -1,6 +1,9 @@
|
|||
<x:layout>
|
||||
<div
|
||||
class="fixed inset-0 z-40 items-center justify-between hidden w-full h-screen p-16 pointer-events-none lg:flex">
|
||||
x-data
|
||||
@keydown.escape.window="Turbo.visit('{{ route('tip.index') }}')"
|
||||
class="fixed inset-0 z-40 items-center justify-between hidden w-full h-screen p-16 pointer-events-none lg:flex"
|
||||
>
|
||||
|
||||
{{-- Left button = newer --}}
|
||||
@if($link = $tip->newQuery()->orderBy('created_at', 'asc')->firstWhere('created_at', '>', $tip->created_at))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue