mirror of
https://github.com/dergigi/boris.git
synced 2026-02-23 07:54:59 +01:00
feat: position bookmark type icon in top-left corner of card
- Move bookmark type icon to top-left corner as overlay - Add bookmark-type-overlay with absolute positioning - Style icon with background, border, and shadow for visibility - Update responsive design for smaller screens - Remove icon from bookmark header to avoid duplication - Ensure icon is always visible and accessible
This commit is contained in:
@@ -117,6 +117,11 @@ export const CardView: React.FC<CardViewProps> = ({
|
||||
onKeyDown={handleKeyDown}
|
||||
>
|
||||
<div className="card-layout">
|
||||
{/* Bookmark type icon in top-left corner */}
|
||||
<div className="bookmark-type-overlay">
|
||||
<FontAwesomeIcon icon={contentTypeIcon} className="content-type-icon" />
|
||||
</div>
|
||||
|
||||
<div className="card-content">
|
||||
<div className="card-content-header">
|
||||
{(cachedImage || firstUrl) && (
|
||||
@@ -134,9 +139,6 @@ export const CardView: React.FC<CardViewProps> = ({
|
||||
)}
|
||||
<div className="card-text-content">
|
||||
<div className="bookmark-header">
|
||||
<span className="bookmark-type">
|
||||
<FontAwesomeIcon icon={contentTypeIcon} className="content-type-icon" />
|
||||
</span>
|
||||
|
||||
{getInternalRoute() ? (
|
||||
<Link
|
||||
|
||||
Reference in New Issue
Block a user