feat: redesign medium-sized bookmark cards with left-side thumbnails

- Replace full-width hero images with compact left-side thumbnails
- Add card-layout flex container for thumbnail + content arrangement
- Implement 80px square thumbnails with hover scale effects
- Update responsive design for smaller screens (60px tablet, 50px mobile)
- Maintain content truncation and reading progress indicators
- Improve space efficiency while preserving visual appeal
This commit is contained in:
Gigi
2025-10-25 01:31:26 +02:00
parent 3d74c25c7d
commit 78da0cb3e4
2 changed files with 55 additions and 31 deletions

View File

@@ -116,20 +116,21 @@ export const CardView: React.FC<CardViewProps> = ({
tabIndex={0}
onKeyDown={handleKeyDown}
>
{(cachedImage || firstUrl) && (
<div
className="card-hero-image"
style={cachedImage ? { backgroundImage: `url(${cachedImage})` } : undefined}
onClick={() => handleReadNow({ preventDefault: () => {} } as React.MouseEvent<HTMLButtonElement>)}
>
{!cachedImage && firstUrl && (
<div className="preview-placeholder">
<FontAwesomeIcon icon={contentTypeIcon} />
</div>
)}
</div>
)}
<div className="card-content">
<div className="card-layout">
{(cachedImage || firstUrl) && (
<div
className="card-thumbnail"
style={cachedImage ? { backgroundImage: `url(${cachedImage})` } : undefined}
onClick={() => handleReadNow({ preventDefault: () => {} } as React.MouseEvent<HTMLButtonElement>)}
>
{!cachedImage && firstUrl && (
<div className="thumbnail-placeholder">
<FontAwesomeIcon icon={contentTypeIcon} />
</div>
)}
</div>
)}
<div className="card-content">
<div className="bookmark-header">
<span className="bookmark-type">
<FontAwesomeIcon icon={contentTypeIcon} className="content-type-icon" />
@@ -234,6 +235,7 @@ export const CardView: React.FC<CardViewProps> = ({
</div>
{/* CTA removed */}
</div>
</div>
</div>
</div>
)