Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions frontend/src/components/theme-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,17 @@ export function ThemeSection({ theme, variant = "feed" }: ThemeSectionProps) {

return (
<article id={`theme-${theme.id}`} className="group/theme space-y-3">
{theme.image_url && variant === "permalink" && (
{theme.image_url && (
<img
src={theme.image_url}
alt=""
className="w-60 h-60 rounded object-cover"
className={cn(
"w-full rounded-lg object-cover",
variant === "permalink" ? "aspect-[5/2]" : "aspect-[3/1]",
)}
/>
)}
<div className="flex items-start gap-3">
{theme.image_url && variant === "feed" && (
<img
src={theme.image_url}
alt=""
className="w-14 h-14 rounded object-cover flex-shrink-0 mt-0.5"
/>
)}
<div className="prose prose-sm max-w-none flex-1">
<Markdown>{theme.body_md}</Markdown>
</div>
Expand Down
Loading