Commit bb0ca30 1 parent f9eb818 commit bb0ca30 Copy full SHA for bb0ca30
File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<transition name =" slide" >
3
- <div class =" fixed right-4 top-2 z-10 flex items-center" v-show =" showSearch" v-if =" search" >
3
+ <div
4
+ class =" fixed z-10 flex w-full justify-end p-2"
5
+ v-show =" showSearch"
6
+ v-if =" search"
7
+ ref =" container"
8
+ :style =" style"
9
+ >
4
10
<div class =" input input-primary flex h-auto items-center !shadow-lg" >
5
11
<mdi:magnify />
6
12
<input
19
25
20
26
<script lang="ts" setup>
21
27
const input = ref <HTMLInputElement >();
28
+ const container = ref <HTMLDivElement >();
22
29
const { searchFilter, showSearch, resetSearch } = useSearchFilter ();
23
30
31
+ const { style } = useDraggable (container );
32
+
24
33
onKeyStroke (" f" , (e ) => {
25
34
if (e .ctrlKey || e .metaKey ) {
26
35
showSearch .value = true ;
You can’t perform that action at this time.
0 commit comments