Add highlights

This commit is contained in:
2024-04-05 21:35:39 +11:00
parent d02b74621a
commit 38d5108979
22 changed files with 188 additions and 25 deletions

View File

@@ -13,6 +13,13 @@ div class="mb-12 prose dark:prose-invert max-w-prose mx-auto text-gray-800 dark:
== bookmark.content
- if bookmark.highlights.count > 0
h2 Highlights
- bookmark.highlights.each do |highlight|
div class="rounded p-2 bg-amber-100 dark:bg-amber-800 mb-4"
= render "shared/quote", color: "fill-amber-200 dark:fill-amber-700"
= highlight.text
- unless bookmark.cached_content.nil?
button class="hover:text-gray-400" @click="open = ! open" Toggle cached version