better cache all note button

This commit is contained in:
Julien Calixte
2024-10-20 00:09:41 +02:00
parent 941f867031
commit 0841bbfe50
2 changed files with 22 additions and 9 deletions

View File

@@ -99,16 +99,18 @@ const focusREADME = () => scrollToTop()
<a @click.prevent="focusREADME">{{ repo }}</a>
</div>
<div class="repo-title">
<div class="repo-header">
<h1 class="title is-1">
<router-link :to="{ name: 'FluxNoteView', params: { user, repo } }">
{{ repo }}
</router-link>
</h1>
<h4 class="subtitle is-5">
<em>{{ user }}</em>
</h4>
<cache-all-notes />
</div>
<h2 class="subtitle is-5">
<em>{{ user }}</em>
</h2>
</div>
<slot />
<lite-loading v-if="isLoading" />
<div v-else-if="!hasContent">No content here 📝</div>
@@ -179,6 +181,17 @@ $header-height: 40px;
.repo-title {
margin-top: 1rem;
.repo-header {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
}
.title {
margin-bottom: 0;
}
.title,
.subtitle {
text-align: center;

View File

@@ -20,7 +20,7 @@ const confirmBeforeCachingAllNotes = () => {
></progress>
</div>
<button v-else class="button" @click="() => confirmBeforeCachingAllNotes()">
cache all notes
<img src="/assets/offline.svg" alt="offline cloud" />
</button>
</template>