mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
Fixed "Show all" button not appearing on profile summaries
no ref
This commit is contained in:
parent
3e806ca761
commit
e5ea3a0a8c
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@tryghost/admin-x-activitypub",
|
"name": "@tryghost/admin-x-activitypub",
|
||||||
"version": "0.3.48",
|
"version": "0.3.49",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -274,7 +274,7 @@ const ViewProfileModal: React.FC<ViewProfileModalProps> = ({
|
||||||
if (contentRef.current) {
|
if (contentRef.current) {
|
||||||
setIsOverflowing(contentRef.current.scrollHeight > 160); // Compare content height to max height
|
setIsOverflowing(contentRef.current.scrollHeight > 160); // Compare content height to max height
|
||||||
}
|
}
|
||||||
}, [isExpanded]);
|
}, [isExpanded, profile]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Modal
|
<Modal
|
||||||
|
@ -345,7 +345,7 @@ const ViewProfileModal: React.FC<ViewProfileModalProps> = ({
|
||||||
<div className='absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-white via-white/90 via-60% to-transparent' />
|
<div className='absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-white via-white/90 via-60% to-transparent' />
|
||||||
)}
|
)}
|
||||||
{isOverflowing && <Button
|
{isOverflowing && <Button
|
||||||
className='absolute bottom-0 text-pink'
|
className='absolute bottom-0 text-green'
|
||||||
label={isExpanded ? 'Show less' : 'Show all'}
|
label={isExpanded ? 'Show less' : 'Show all'}
|
||||||
link={true}
|
link={true}
|
||||||
onClick={toggleExpand}
|
onClick={toggleExpand}
|
||||||
|
|
Loading…
Add table
Reference in a new issue