mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(app): let the profile popout banner fill its header (#1953)
This commit is contained in:
1 parent
54360708d9
commit
26939eccce
1 file changed
+3
-4
@@ -43,7 +43,7 @@ export const ProfileCardBanner: React.FC<ProfileCardBannerProps> = observer(
|
|||||||
onAvatarClick,
|
onAvatarClick,
|
||||||
onAvatarContextMenu,
|
onAvatarContextMenu,
|
||||||
onBannerContextMenu,
|
onBannerContextMenu,
|
||||||
headerHeight = 140,
|
headerHeight = PROFILE_POPOUT_GEOMETRY.headerHeightPx,
|
||||||
}) => {
|
}) => {
|
||||||
const bannerHeight = PROFILE_POPOUT_GEOMETRY.bannerHeightPx;
|
const bannerHeight = PROFILE_POPOUT_GEOMETRY.bannerHeightPx;
|
||||||
const reactId = useId();
|
const reactId = useId();
|
||||||
@@ -65,12 +65,11 @@ export const ProfileCardBanner: React.FC<ProfileCardBannerProps> = observer(
|
|||||||
});
|
});
|
||||||
const bannerStyle = useMemo<React.CSSProperties>(
|
const bannerStyle = useMemo<React.CSSProperties>(
|
||||||
() => ({
|
() => ({
|
||||||
height: remFromPx(bannerHeight),
|
height: '100%',
|
||||||
minHeight: remFromPx(bannerHeight),
|
|
||||||
backgroundColor: bannerColor,
|
backgroundColor: bannerColor,
|
||||||
...(activeBannerUrl ? {backgroundImage: `url(${activeBannerUrl})`} : {}),
|
...(activeBannerUrl ? {backgroundImage: `url(${activeBannerUrl})`} : {}),
|
||||||
}),
|
}),
|
||||||
[activeBannerUrl, bannerColor, bannerHeight],
|
[activeBannerUrl, bannerColor],
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<header
|
<header
|
||||||
|
|||||||
Reference in new issue
Block a user