0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00
ghost/apps
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
..
admin-x-activitypub Refactored handleViewContent so it can be reused (#21468) 2024-10-31 09:58:47 +00:00
admin-x-demo 🌐 Updated packages for improved i18n support (#21218) 2024-10-03 22:27:16 +00:00
admin-x-design-system Made the tabs sticky in design and newsletter settings (#21477) 2024-10-31 13:30:25 +08:00
admin-x-framework Fixed flaky Admin X design tests (#21426) 2024-10-28 17:25:05 +09:00
admin-x-settings Made the tabs sticky in design and newsletter settings (#21477) 2024-10-31 13:30:25 +08:00
announcement-bar Added Dev Container setup (#21279) 2024-10-24 11:15:08 -07:00
comments-ui Patched Comments UI v0.20.1 (#21464) 2024-10-30 10:06:11 +00:00
portal Bumbed Portal to 2.46.0 2024-10-25 10:34:24 +00:00
signup-form Added Dev Container setup (#21279) 2024-10-24 11:15:08 -07:00
sodo-search 🐛 Fixed search state bug & missing last result (#21417) 2024-10-28 12:50:15 +07:00