Skip to content

Commit 68d167f

Browse files
committed
fix date and unread badge
1 parent 3d67517 commit 68d167f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ui/src/components/entry/entry-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const EntryItem: Component<EntryItemProps> = props => {
2828
<small class="flex w-full gap-1 text-xs text-gray-500 dark:text-gray-400">
2929
<span class="font-medium">{props.feed.title}</span>
3030
<span class="text-gray-300 dark:text-gray-600">&ndash;</span>
31-
<span>{dayjs(props.entry.published_at).format('MMMM d, YYYY')}</span>
31+
<span>{dayjs(props.entry.published_at).format('MMM D, YYYY')}</span>
3232
</small>
3333
</A>
3434
);

ui/src/components/entry/entry.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const EntryView: ParentComponent<EntryViewProps> = props => {
3535

3636
{local.entry.published_at && (
3737
<div class="text-sm text-gray-500 dark:text-gray-400">
38-
{dayjs(local.entry.published_at).format('MMMM DD, YYYY [at] h:mm a')}
38+
{dayjs(local.entry.published_at).format('MMM D, YYYY [at] h:mm a')}
3939
</div>
4040
)}
4141

ui/src/components/feed/feed-item.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const FeedItem: Component<FeedItemProps> = props => {
4646
<span class="flex-1 overflow-x-hidden truncate">{props.feed.title}</span>
4747

4848
{getStats()?.count_unread && (
49-
<span class="-mx-1 -my-0.5 shrink-0 rounded-md bg-white px-1 py-0.5 text-xs/4 text-gray-500 dark:bg-gray-800 dark:text-gray-300">
49+
<span class="-mx-1 -my-0.5 w-6 shrink-0 rounded-md bg-white py-0.5 text-center text-xs/4 text-gray-500 dark:bg-gray-800 dark:text-gray-300">
5050
{getStats()?.count_unread}
5151
</span>
5252
)}

0 commit comments

Comments
 (0)