mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
esc key
This commit is contained in:
parent
1d3ab71c50
commit
dd3c8276e2
4 changed files with 13 additions and 7 deletions
3
resources/js/app.js
vendored
3
resources/js/app.js
vendored
|
|
@ -1,3 +1,6 @@
|
|||
import * as Turbo from "@hotwired/turbo"
|
||||
|
||||
window.Turbo = Turbo;
|
||||
|
||||
import 'alpine-turbo-drive-adapter'
|
||||
import 'alpinejs'
|
||||
|
|
|
|||
|
|
@ -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