💄 (note) fix share note display
This commit is contained in:
@@ -218,7 +218,6 @@ $header-height: 40px;
|
|||||||
.note {
|
.note {
|
||||||
min-width: var(--note-width);
|
min-width: var(--note-width);
|
||||||
max-width: var(--note-width);
|
max-width: var(--note-width);
|
||||||
height: auto;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
</article>
|
</article>
|
||||||
<flux-note
|
<flux-note
|
||||||
key="share-notes"
|
key="share-notes"
|
||||||
|
class="notes"
|
||||||
:user="user"
|
:user="user"
|
||||||
:repo="repo"
|
:repo="repo"
|
||||||
:content="content"
|
:content="content"
|
||||||
@@ -16,7 +17,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineAsyncComponent, defineComponent, ref } from 'vue'
|
import { useQueryStackedNotes } from '@/hooks/useQueryStackedNotes.hook'
|
||||||
|
import { defineAsyncComponent, defineComponent, onMounted, ref } from 'vue'
|
||||||
|
|
||||||
const FluxNote = defineAsyncComponent(() => import('@/components/FluxNote.vue'))
|
const FluxNote = defineAsyncComponent(() => import('@/components/FluxNote.vue'))
|
||||||
|
|
||||||
@@ -32,6 +34,11 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const content = ref('Getting stacked notes...')
|
const content = ref('Getting stacked notes...')
|
||||||
|
const { resetStackedNotes } = useQueryStackedNotes()
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
resetStackedNotes()
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
content
|
content
|
||||||
@@ -42,8 +49,21 @@ export default defineComponent({
|
|||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
.share-notes {
|
.share-notes {
|
||||||
|
background-color: var(--background-color);
|
||||||
|
min-width: 100vw;
|
||||||
|
margin: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
article {
|
article {
|
||||||
margin: 1rem;
|
margin: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
article {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user