mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-10-28 07:40:27 +01:00
removed faq panel jank & adjusted its width, added subtle route transition effect
This commit is contained in:
@@ -56,6 +56,13 @@
|
||||
|
||||
<script>
|
||||
export default {
|
||||
transition(to, from) {
|
||||
if (!from) return 'swoop-in'
|
||||
let routes = ['index', 'install', 'faq', 'donate', 'links']
|
||||
if (routes.indexOf(to.name) < 0) return 'swoop-out'
|
||||
if (routes.indexOf(from.name) < 0) return 'swoop-in'
|
||||
return routes.indexOf(to.name) > routes.indexOf(from.name) ? 'swoop-left' : 'swoop-right'
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
installLink: "/install",
|
||||
|
||||
Reference in New Issue
Block a user