quartz/components/ReadingTime.tsx
@@ -5,7 +5,11 @@ const text = fileData.text if (text) { const { text: timeTaken, words } = readingTime(text) return <p class="reading-time">{words} words, {timeTaken}</p> return ( <p class="reading-time"> {words} words, {timeTaken} </p> ) } else { return null } @@ -14,7 +18,7 @@ ReadingTime.css = ` .reading-time { margin-top: 0; opacity: 0.5; color: var(--gray); } `