Skip to content

Commit

Permalink
fix overflow in notes and use summary text instead of content if avai…
Browse files Browse the repository at this point in the history
…lable.
  • Loading branch information
dskvr committed Sep 6, 2024
1 parent 10c72c9 commit a099298
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "myrelay.site",
"type": "module",
"version": "0.2.12",
"version": "0.2.13",
"main": "index.js",
"repository": "[email protected]:sandwichfarm/myrelay.site.git",
"author": "dskvr <[email protected]>",
Expand Down
5 changes: 3 additions & 2 deletions src/lib/components/partials/note.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
$: wrapperClass = noClass? '': 'mrp-note mrp-note-bg mrp-note-content block'
$: noteTitle = () => note?.tags?.find(t => t[0] === 'title')?.[1]
$: parse = async (): Promise<string> => parseNote(note.content, parseOptions)
$: summary = note.tags.find(t => t[0] === 'summary')?.[1]
$: parse = async (): Promise<string> => parseNote(summary && summary?.length? summary: note.content, parseOptions)
onMount(async () => {
content.set(await parse())
Expand All @@ -52,7 +53,7 @@
// : parseMP4s(parseImages(note.content))
</script>

<div class="{wrapperClass} {$$props.class} transition-colors ease-in-out">
<div class="{wrapperClass} {$$props.class} overflow-hidden transition-colors ease-in-out">

<slot name="header" />

Expand Down

0 comments on commit a099298

Please sign in to comment.