diff --git a/app/components/DocumentHistory.tsx b/app/components/DocumentHistory.tsx index 163774be4..ac383130a 100644 --- a/app/components/DocumentHistory.tsx +++ b/app/components/DocumentHistory.tsx @@ -97,7 +97,7 @@ function DocumentHistory() { documentId: document.id, }} document={document} - empty={{t("Oh weird, there's nothing here")}} + empty={{t("No history yet")}} /> diff --git a/app/components/EventListItem.tsx b/app/components/EventListItem.tsx index 8a540c597..58034b869 100644 --- a/app/components/EventListItem.tsx +++ b/app/components/EventListItem.tsx @@ -171,7 +171,7 @@ const Subtitle = styled.span` const ItemStyle = css` border: 0; position: relative; - margin: 8px; + margin: 8px 0; padding: 8px; border-radius: 8px; diff --git a/app/components/PaginatedEventList.tsx b/app/components/PaginatedEventList.tsx index 0ec42ca48..b86c41042 100644 --- a/app/components/PaginatedEventList.tsx +++ b/app/components/PaginatedEventList.tsx @@ -13,6 +13,7 @@ type Props = { heading?: React.ReactNode; empty?: React.ReactNode; }; + const PaginatedEventList = React.memo(function PaginatedEventList({ empty, heading, @@ -23,7 +24,7 @@ const PaginatedEventList = React.memo(function PaginatedEventList({ ...rest }: Props) { return ( - (function PaginatedEventList({ ); }); +const StyledPaginatedList = styled(PaginatedList)` + padding: 0 8px; +`; + const Heading = styled("h3")` font-size: 14px; - padding: 0 12px; + padding: 0 4px; `; export default PaginatedEventList; diff --git a/app/components/PaginatedList.tsx b/app/components/PaginatedList.tsx index e43209943..c2198ea95 100644 --- a/app/components/PaginatedList.tsx +++ b/app/components/PaginatedList.tsx @@ -29,6 +29,7 @@ type Props = WithTranslation & empty?: React.ReactNode; loading?: React.ReactElement; items?: T[]; + className?: string; renderItem: ( item: T, index: number, @@ -184,6 +185,7 @@ class PaginatedList extends React.Component> { {(composite: CompositeStateReturn) => { let previousHeading = ""; diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 4cb18b184..1e95be70b 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -96,7 +96,7 @@ "Deleted Collection": "Deleted Collection", "Unpin": "Unpin", "History": "History", - "Oh weird, there's nothing here": "Oh weird, there's nothing here", + "No history yet": "No history yet", "New": "New", "Only visible to you": "Only visible to you", "Draft": "Draft",