0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/apps/admin-x-activitypub
Djordje Vlaisavljevic becfd13141
Refactored handleViewContent so it can be reused (#21468)
ref
https://linear.app/ghost/issue/AP-540/clicking-comment-icon-on-posts-and-likes-tabs-of-your-profile-doesnt

- We want to open posts in the drawer from multiple views (Inbox,
Profile etc.) and this change allows us to do so by pulling
`handleViewContent` from `Inbox.tsx` into a utility function. At the
same time, we’ve simplified the function so it uses less props to
achieve the same functionality.
- Also added a simple fix for scrolling the reply-box into view when
opening a long `article` by clicking on the reply icon. We probably
still need to figure out a more robust solution, because the height of
the `iframe` and the fact it takes some time to load it sometimes gets
in the way.

Co-authored-by: Michael Barrett <mike@ghost.org>
2024-10-31 09:58:47 +00:00
..
public/styles Added Ghost2Ghost ActivityPub feature that uses mock API (#20411) 2024-06-19 12:46:02 +01:00
src Refactored handleViewContent so it can be reused (#21468) 2024-10-31 09:58:47 +00:00
test Added Ghost2Ghost ActivityPub feature that uses mock API (#20411) 2024-06-19 12:46:02 +01:00
.eslintignore
.eslintrc.cjs
.gitignore
index.html
package.json Refactored handleViewContent so it can be reused (#21468) 2024-10-31 09:58:47 +00:00
playwright.config.mjs
postcss.config.cjs
tailwind.config.cjs
tsconfig.json Added alternative layout for displaying ActivityPub articles (#20556) 2024-07-08 15:11:01 +01:00
vite.config.mjs Updated vite config to allow sibling test files 2024-07-24 13:38:08 +07:00