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

View File

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