From 4e9c9e437f638e450e4bc8cbc605e7bb100ebe4a Mon Sep 17 00:00:00 2001
From: Anshul Gupta <ansg191@anshulg.com>
Date: Fri, 7 Jun 2024 18:38:30 -0700
Subject: Add text content to search results

---
 web/src/Doc.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'web/src/Doc.tsx')

diff --git a/web/src/Doc.tsx b/web/src/Doc.tsx
index e7d2a42..2cfd1a0 100644
--- a/web/src/Doc.tsx
+++ b/web/src/Doc.tsx
@@ -12,7 +12,7 @@ function Doc({document}: DocParams) {
                 <div className="image-container">
                     <img className="image" src={document.images[0]} alt={document.title}/>
                 </div>
-                <div>
+                <div className="doc-text">
                     <h2 className='doc-title'>
                         <a href={document.url} target="_blank" rel="noreferrer noopener">
                             {document.title}
@@ -22,6 +22,9 @@ function Doc({document}: DocParams) {
                         <p className='doc-domain'>{document.domain}</p>
                         <p className='doc-domain'>Score: {(document.score).toFixed(2)}</p>
                     </div>
+                    <p className='doc-content'>
+                        {document.content}
+                    </p>
                 </div>
             </div>
         </div>
-- 
cgit v1.2.3

