@@ -190,7 +190,7 @@ export function AllItem({ entryId, translation, currentFeedTitle }: UniversalIte
|
||||
)
|
||||
}
|
||||
|
||||
AllItem.wrapperClassName = "pl-7 pr-5"
|
||||
AllItem.wrapperClassName = "pl-4 pr-4 @[700px]:pl-6 @[1024px]:pr-5"
|
||||
|
||||
export function AllItemStateLess({ entry, feed }: EntryItemStatelessProps) {
|
||||
return (
|
||||
|
||||
@@ -14,7 +14,7 @@ export function ArticleItem({ entryId, translation }: UniversalItemProps) {
|
||||
return <ListItem entryId={entryId} translation={translation} />
|
||||
}
|
||||
|
||||
ArticleItem.wrapperClassName = cn(readableContentMaxWidth, "pl-7 pr-4")
|
||||
ArticleItem.wrapperClassName = cn(readableContentMaxWidth, "pl-4 pr-3 @[700px]:pl-6 @[1024px]:pr-4")
|
||||
|
||||
export function ArticleItemStateLess({ entry, feed }: EntryItemStatelessProps) {
|
||||
return (
|
||||
|
||||
@@ -135,7 +135,10 @@ export const SocialMediaItem: EntryListItemFC = ({ entryId, translation }) => {
|
||||
)
|
||||
}
|
||||
|
||||
SocialMediaItem.wrapperClassName = cn(readableContentMaxWidth, "pl-7 pr-4")
|
||||
SocialMediaItem.wrapperClassName = cn(
|
||||
readableContentMaxWidth,
|
||||
"pl-4 pr-3 @[700px]:pl-6 @[1024px]:pr-4",
|
||||
)
|
||||
|
||||
export function SocialMediaItemStateLess({ entry, feed }: EntryItemStatelessProps) {
|
||||
return (
|
||||
|
||||
@@ -40,7 +40,7 @@ const useParseDate = (date: string) =>
|
||||
}
|
||||
}, [date])
|
||||
|
||||
const dateItemclassName = tw`relative flex items-center text-sm lg:text-base gap-1 px-4 font-bold text-text h-7`
|
||||
const dateItemclassName = tw`relative flex items-center text-sm lg:text-base gap-1 px-3 font-bold text-text h-7`
|
||||
export const DateItem = memo(({ date, view, isSticky }: DateItemProps) => {
|
||||
const showEntryDetailsColumn = useShowEntryDetailsColumn()
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ const SocialMediaFooterMarkItem = ({ filter }: FooterMarkItemProps) => {
|
||||
<div className="relative flex w-full">
|
||||
<FlatMarkAllReadButton
|
||||
className="justify-center"
|
||||
buttonClassName="w-[645px] mx-auto mb-4 pl-7 py-4"
|
||||
buttonClassName="w-[645px] mx-auto mb-4 pl-4 py-4 @[700px]:pl-6"
|
||||
iconClassName="mr-1 text-lg"
|
||||
which="above"
|
||||
filter={filter}
|
||||
|
||||
@@ -85,7 +85,7 @@ export const VirtualRowItem: FC<VirtualRowItemProps> = memo(
|
||||
style={useMemo(
|
||||
() => ({
|
||||
transform,
|
||||
paddingTop: isStickyItem ? "2.75rem" : undefined,
|
||||
paddingTop: isStickyItem ? "1.75rem" : undefined,
|
||||
}),
|
||||
[transform, isStickyItem],
|
||||
)}
|
||||
|
||||
@@ -84,10 +84,10 @@ export const EntryListHeader: FC<{
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"flex h-top-header-with-border-b w-full flex-col pr-4 pt-2.5",
|
||||
"flex h-top-header-with-border-b w-full flex-col pr-2.5 pt-1.5 @[700px]:pr-3 @[1024px]:pr-4 @[1024px]:pt-2",
|
||||
!feedColumnShow && "macos:mt-4 macos:pt-margin-macos-traffic-light-y",
|
||||
titleStyleBasedView[view],
|
||||
isPreview && "px-4",
|
||||
isPreview && "px-2.5 @[700px]:px-3 @[1024px]:px-4",
|
||||
view === FeedViewType.All &&
|
||||
"border-b border-transparent data-[scrolled-beyond-threshold=true]:border-b-border",
|
||||
)}
|
||||
|
||||
@@ -194,7 +194,7 @@ export const EntryList: FC<EntryListProps> = memo(
|
||||
<>
|
||||
<div
|
||||
onKeyDown={handleKeyDown}
|
||||
className={"relative mt-3 w-full select-none"}
|
||||
className={"relative w-full select-none"}
|
||||
style={{
|
||||
height: `${rowVirtualizer.getTotalSize()}px`,
|
||||
}}
|
||||
|
||||
@@ -3,4 +3,4 @@ import { readableContentMaxWidthClassName } from "~/constants/ui"
|
||||
export const girdClassNames = tw`grid grid-cols-1 @lg:grid-cols-2 @3xl:grid-cols-3 @6xl:grid-cols-4 @7xl:grid-cols-5 gap-1.5`
|
||||
|
||||
// Shared max-width styles for readable content
|
||||
export const readableContentMaxWidth = tw`${readableContentMaxWidthClassName} mx-auto px-4`
|
||||
export const readableContentMaxWidth = tw`${readableContentMaxWidthClassName} mx-auto px-3 @[700px]:px-4`
|
||||
|
||||
+1
-1
@@ -147,7 +147,7 @@ export function ListItem({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"group relative flex cursor-menu py-4",
|
||||
"group relative flex cursor-menu py-3",
|
||||
!isRead &&
|
||||
"before:absolute before:-left-3 before:top-6 before:block before:size-2 before:rounded-full before:bg-accent",
|
||||
)}
|
||||
|
||||
+5
-4
@@ -37,16 +37,17 @@ export const EntryReadHistory: Component<{ entryId: string }> = ({ entryId }) =>
|
||||
|
||||
const LIMIT = getLimit(appGirdContainerWidth)
|
||||
|
||||
if (!entryHistory) return null
|
||||
if (!me) return null
|
||||
const placeholder = <div className="-mb-3 h-10" />
|
||||
if (!entryHistory) return placeholder
|
||||
if (!me) return placeholder
|
||||
|
||||
const displayUsers = entryHistory.userIds.filter((id) => id !== me?.id).slice(0, LIMIT)
|
||||
|
||||
if (displayUsers.length === 0) return null
|
||||
if (displayUsers.length === 0) return placeholder
|
||||
|
||||
return (
|
||||
<div
|
||||
className="hidden items-center duration-200 animate-in fade-in @md:flex"
|
||||
className="-mb-3 hidden h-10 items-center duration-200 animate-in fade-in @md:flex"
|
||||
data-hide-in-print
|
||||
>
|
||||
<AvatarGroup>
|
||||
|
||||
Reference in New Issue
Block a user