Skip to content

Commit

Permalink
feed: title tweak and more unicode conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecuvalo committed May 6, 2024
1 parent 1af18ac commit 5030efc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/FeedWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const FeedWrapper = styled('div', { label: 'FeedWrapper' })`
}
&& header {
height: 77px;
height: auto;
border: 0;
border-bottom: 1px solid ${(props) => props.theme.palette.primary.light};
box-shadow: none;
Expand Down
2 changes: 1 addition & 1 deletion components/dashboard/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const StyledHeader = styled('header')`
& h1 > a {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
-webkit-line-clamp: 5;
overflow: hidden;
}
`;
Expand Down
9 changes: 5 additions & 4 deletions social-butterfly/feeds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,13 @@ async function handleEntry(feedEntry: FeedParser.Node, userRemote: UserRemote):
const avatar = pocoPhotos && pocoPhotos['poco:value']['#'];

const title = (feedEntry.title || 'untitled')
.replace(/“/g, '')
.replace(/”/g, '')
.replace(/–/g, '')
.replace(/—/g, '')
.replace(/‘/g, '‘')
.replace(/’/g, '’')
.replace(/–/g, '–')
.replace(/—/g, '—');
.replace(/“/g, '“')
.replace(/”/g, '”')
.replace(/…/g, '…');

return {
id: existingModelEntry?.id || undefined,
Expand Down

0 comments on commit 5030efc

Please sign in to comment.