Skip to content

Commit

Permalink
possible fix for disabling overlayBlur, fixed closebutton position
Browse files Browse the repository at this point in the history
  • Loading branch information
laurens-lamberts committed Feb 1, 2025
1 parent a39f812 commit 8388ae7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions package/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Possible fix for disabling overlayBlur
- Fixed closebutton position

## [0.1.15-8] - 2025-02-02

- overlayNotchInset was reversed. Fixed it.
Expand Down
4 changes: 2 additions & 2 deletions package/src/components/CloseButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const CloseButton = ({ closeOverlay }: { closeOverlay: () => void }) => {
onPress={closeOverlay}
style={{
position: 'absolute',
top: overlayNotchInset ? insets.top : 6,
right: overlayNotchInset ? insets.top / 2 : 6,
top: overlayNotchInset ? 6 : insets.top,
right: overlayNotchInset ? 6 : insets.top / 2,
borderRadius: 18,
height: 36,
width: 36,
Expand Down
2 changes: 1 addition & 1 deletion package/src/components/PopoutRootView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ const PopoutRootView = ({ children }: { children: ReactNode }) => {
item={elementOpened}
panScale={panScale}
backdropProgress={backdropProgress}
disableBlur={!overlayConfig.overlayBlur}
disableBlur={overlayConfig.overlayBlur === false}
overlayImageStyle={overlayConfig.overlayImageStyle}
>
{typeof OverlayComponent === 'function' ? (
Expand Down

0 comments on commit 8388ae7

Please sign in to comment.