feat: add back button
This commit is contained in:
@@ -24,7 +24,7 @@ const getAlias = (did: string) => aka.value.get(did) ?? ""
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<main class="public-note-view">
|
<main class="public-note-list-view">
|
||||||
<h1>Lite public notes</h1>
|
<h1>Lite public notes</h1>
|
||||||
<div v-if="isLoading"></div>
|
<div v-if="isLoading"></div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
@@ -75,7 +75,7 @@ const getAlias = (did: string) => aka.value.get(did) ?? ""
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.public-note-view {
|
.public-note-list-view {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -120,6 +120,28 @@ watch(
|
|||||||
<span class="badge badge-accent" v-if="author">{{ author.alias }}</span>
|
<span class="badge badge-accent" v-if="author">{{ author.alias }}</span>
|
||||||
<article class="note-display" v-html="content"></article>
|
<article class="note-display" v-html="content"></article>
|
||||||
</div>
|
</div>
|
||||||
|
<router-link
|
||||||
|
:to="{ name: 'Home' }"
|
||||||
|
class="button is-small is-white back-button"
|
||||||
|
>
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
class="icon icon-tabler icon-tabler-arrow-narrow-left"
|
||||||
|
width="28"
|
||||||
|
height="28"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
stroke-width="1.5"
|
||||||
|
stroke="currentColor"
|
||||||
|
fill="none"
|
||||||
|
stroke-linecap="round"
|
||||||
|
stroke-linejoin="round"
|
||||||
|
>
|
||||||
|
<line x1="5" y1="12" x2="19" y2="12" />
|
||||||
|
<line x1="5" y1="12" x2="9" y2="16" />
|
||||||
|
<line x1="5" y1="12" x2="9" y2="8" />
|
||||||
|
</svg>
|
||||||
|
return home
|
||||||
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -128,6 +150,13 @@ watch(
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
||||||
|
.back-button {
|
||||||
|
position: absolute;
|
||||||
|
left: 1rem;
|
||||||
|
top: 1rem;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user