diff --git a/CLAUDE.md b/CLAUDE.md index 53bc222..5fe008a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -33,6 +33,7 @@ Run a single test file: `pnpm test src/modules/repo/services/resolvePath.spec.ts ### Styling Tailwind v4 uses the modern CSS-based config in `src/styles/app.css`: + - `@import "tailwindcss"` instead of directives - DaisyUI configured via `@plugin 'daisyui' { themes: retro --default, coffee --prefersdark; }` - `@tailwindcss/typography` for prose styling diff --git a/src/components/StackedPublicNote.vue b/src/components/StackedPublicNote.vue index a63b2d7..6e6a7ef 100644 --- a/src/components/StackedPublicNote.vue +++ b/src/components/StackedPublicNote.vue @@ -9,18 +9,15 @@ import { getUrl } from "@/modules/atproto/getUrl" import { withATProtoImages } from "@/modules/atproto/withATProtoImages" import { getAuthor } from "@/modules/atproto/getAuthor" import { PublicNoteRecord } from "@/modules/atproto/publicNote.types" -import { parseAtUri } from "@/modules/atproto/parseAtUri" const props = defineProps<{ - atUri: string + didrkey: string index: number - title?: string }>() -const atUri = computed(() => props.atUri) -const atUriProps = computed(() => parseAtUri(atUri.value)) -const did = computed(() => atUriProps.value.did) -const rkey = computed(() => atUriProps.value.rkey) +const didrkey = computed(() => props.didrkey) +const did = computed(() => props.didrkey.split("-")[0]) +const rkey = computed(() => props.didrkey.split("-")[1]) const index = computed(() => props.index) @@ -33,7 +30,7 @@ const className = computed(() => `stacked-note-${props.index}`) const titleClassName = computed(() => `title-${className.value}`) const { scrollToFocusedNote } = useRouteQueryStackedNotes() -const { listenToClick } = useATProtoLinks(className.value, atUri) +const { listenToClick } = useATProtoLinks(className.value, didrkey) const { displayNoteOverlay } = useNoteOverlay(className.value, index) const noteRecord = computedAsync(async () => @@ -70,12 +67,12 @@ watch( :class="{ [className]: true, overlay: displayNoteOverlay, - [`note-${rkey}`]: true, + [`note-${didrkey}`]: true, }" > diff --git a/tailwind.config.js b/tailwind.config.js index 8b49291..44deb55 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -28,7 +28,7 @@ module.exports = { css: { ...defaultTitleStyles, "font-size": "13pt", - "font-family": '"Courier Prime", monospace', + "font-family": '"Libertinus Serif", serif', p: { "margin-top": "0.8em", "margin-bottom": "0.8em",