Skip to content

Commit

Permalink
fix: audio cover style in different text size
Browse files Browse the repository at this point in the history
  • Loading branch information
songkeys committed Jul 29, 2024
1 parent 0686ebe commit 07c4565
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/renderer/src/modules/entry-column/list-item-template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,13 @@ export function ListItem({

{withAudio && entry.entries?.attachments?.[0].url && (
<AudioCover

entryId={entryId}
src={entry.entries?.attachments?.[0].url}
durationInSeconds={Number.parseInt(
String(entry.entries?.attachments?.[0].duration_in_seconds ?? 0),
10,
)}
feedIcon={<FeedIcon feed={feed} entry={entry.entries} size={80} />}
feedIcon={<FeedIcon feed={feed} entry={entry.entries} size={80} className="m-0" />}
/>
)}

Expand Down Expand Up @@ -172,7 +171,7 @@ function AudioCover({
}

return (
<div className="relative ml-2 size-20 shrink-0">
<div className="relative ml-2 shrink-0">
{feedIcon}

<div
Expand Down

0 comments on commit 07c4565

Please sign in to comment.