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