From c3095a545e3ca75451ac883da32fd10384cdcbc6 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Mon, 16 Feb 2026 23:56:57 +0100 Subject: [PATCH] feat: better header for public note --- src/components/WelcomeWorld.vue | 24 ++++++------- src/views/PublicNoteListByDidView.vue | 8 +++-- src/views/PublicNoteListView.vue | 8 +++-- src/views/PublicNoteView.vue | 51 +++++++++++++-------------- 4 files changed, 48 insertions(+), 43 deletions(-) diff --git a/src/components/WelcomeWorld.vue b/src/components/WelcomeWorld.vue index 8aafb7d..6d79735 100644 --- a/src/components/WelcomeWorld.vue +++ b/src/components/WelcomeWorld.vue @@ -1,3 +1,15 @@ + + - - diff --git a/src/views/PublicNoteListView.vue b/src/views/PublicNoteListView.vue index ad8b24d..8ee9d5e 100644 --- a/src/views/PublicNoteListView.vue +++ b/src/views/PublicNoteListView.vue @@ -58,8 +58,8 @@ const { notes, isLoading, canLoadMore, onLoadMore, getAlias } = display: flex; flex: 1; flex-direction: column; - margin-left: 1rem; - margin-right: 1rem; + padding-left: 1rem; + padding-right: 1rem; h1 { margin-top: 1rem; @@ -90,5 +90,9 @@ const { notes, isLoading, canLoadMore, onLoadMore, getAlias } = justify-content: flex-end; } } + + @media screen and (min-width: 769px) { + overflow-y: auto; + } } diff --git a/src/views/PublicNoteView.vue b/src/views/PublicNoteView.vue index 34d4ef0..3e3ca0e 100644 --- a/src/views/PublicNoteView.vue +++ b/src/views/PublicNoteView.vue @@ -12,6 +12,7 @@ import { downloadFont } from "@/utils/downloadFont" import { computedAsync } from "@vueuse/core" import { computed, nextTick, watch } from "vue" import { useResizeContainer } from "@/hooks/useResizeContainer.hook" +import ThemeSwap from "@/components/ThemeSwap.vue" const props = defineProps<{ did: string; rkey: string }>() const did = computed(() => props.did) @@ -79,6 +80,26 @@ watch(