Skip to content

Commit

Permalink
Merge branch 'main' into staging
Browse files Browse the repository at this point in the history
* main:
  fix: background issue with feed top bar
  fix: guardians page hover effect not working
  • Loading branch information
sajald77 committed Dec 4, 2024
2 parents f6ce0b1 + 34a8b9a commit 469192e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/discovery/pages/activity/ActivityFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const Activity = () => {
width="full"
justifyContent="center"
alignItems="center"
bg="utils.pbg"
zIndex={2}
>
<AnimatedNavBar {...animatedNavBarProps} activeIndex={activeIndex} showIcon showLabel />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export const DesktopGuardiansIllustration = () => {
const [gradientHeight, setGradientHeight] = useState(0)

const updateUIPosition = () => {
console.log('getting into updateUIPosition')
if (imageRef.current) {
const imageRect = imageRef.current.getBoundingClientRect()
const imageHeight = imageRect.height
Expand All @@ -43,6 +44,10 @@ export const DesktopGuardiansIllustration = () => {
setGradientHeight(imageHeight * 0.5)

setUiPosition(xPosition)
} else {
setTimeout(() => {
updateUIPosition()
}, 100)
}
}

Expand Down

0 comments on commit 469192e

Please sign in to comment.