mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Offset search scrolling to search container
This commit is contained in:
parent
46e994a42d
commit
86edf2812b
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="search w-full">
|
<div
|
||||||
|
ref="search-container"
|
||||||
|
class="search-container w-full"
|
||||||
|
>
|
||||||
|
|
||||||
<slot name="before-search">
|
<slot name="before-search">
|
||||||
<div class="list-summary-wrapper flex justify-center text-center text-sm my-4">
|
<div class="list-summary-wrapper flex justify-center text-center text-sm my-4">
|
||||||
|
|
@ -503,7 +506,7 @@ export default {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
scrollInputToTop () {
|
scrollInputToTop () {
|
||||||
scrollIntoView(this.$refs['search'], {
|
scrollIntoView(this.$refs['search-container'], {
|
||||||
block: 'start',
|
block: 'start',
|
||||||
behavior: 'smooth'
|
behavior: 'smooth'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue