Skip to content

Commit

Permalink
fix(Popup): πŸ› δ½Žη‰ˆζœ¬ι—ͺ烁
Browse files Browse the repository at this point in the history
  • Loading branch information
onlyling committed Jan 23, 2025
1 parent 53c903e commit a109a51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/popup/popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const Popup: React.FC<PopupProps> = ({
getTransform(position, fadeAnim),
PopupPositionMap[position],
]
: null,
: STYLES.popup_hide,
]

if (state.lazyRender) {
Expand Down
4 changes: 3 additions & 1 deletion src/popup/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ export type PopupTheme = ReturnType<typeof varCreator>
export const styleCreator = (cv: PopupTheme) => {
return StyleSheet.create({
popup: {
position: 'relative',
backgroundColor: cv.popup_background_color,
overflow: 'hidden',
},
popup_hide: {
position: 'relative',
height: 0,
},
popup_active: {
Expand Down

0 comments on commit a109a51

Please sign in to comment.