refacto with no nosence

This commit is contained in:
Julien Calixte
2023-08-14 18:42:35 +02:00
parent 42aea6bb7f
commit 6412b1252c
4 changed files with 9 additions and 227 deletions

View File

@@ -49,8 +49,7 @@ useUserSettings()
const { visitRepo } = useVisitRepo({ user: user, repo: repo })
const { toHTML } = useMarkdown(repo)
const { listenToClick } = useLinks('note-display')
const { stackedNotes, resetStackedNotes } = useQueryStackedNotes()
const { scrollToFocusedNote } = useQueryStackedNotes()
const { stackedNotes, resetStackedNotes, scrollToTop } = useQueryStackedNotes()
const { titles } = useNote('note-container')
@@ -89,7 +88,7 @@ onUnmounted(() => {
resetStackedNotes()
})
const focus = () => scrollToFocusedNote(undefined, true)
const focusREADME = () => scrollToTop()
</script>
<template>
@@ -97,7 +96,7 @@ const focus = () => scrollToFocusedNote(undefined, true)
<div class="note readme">
<header-note v-if="withHeader" class="header" :user="user" :repo="repo" />
<div class="repo-title-breadcrumb">
<a @click.prevent="focus">{{ repo }}</a>
<a @click.prevent="focusREADME">{{ repo }}</a>
</div>
<div class="repo-title">
<h1 class="title is-1">