Skip to content

Commit

Permalink
fix(CCreator): fix cover and fullscreens problems with video
Browse files Browse the repository at this point in the history
fix(CCreator): fix zoom behaviour in ccreator

feat(CCreator): fix patronus height issue

---
Reviewed-by: @MIGUELez11
Refs: #116
  • Loading branch information
Volcanos authored Feb 9, 2024
1 parent 4b53b27 commit 4d19431
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createStyles, pxToRem } from '@bubbles-ui/components';

export const CardEmptyCoverStyles = createStyles((theme, { height }) => ({
emptyStateRoot: {
height: height ? pxToRem(height) : pxToRem(144),
height: height ? `${height}px` : '100%',
width: 'auto',
display: 'flex',
overflow: 'hidden',
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/overlay/ModalZoom/ModalZoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ const ModalZoom = ({ children, canPlay, opened, hideButton, onClose = noop, styl
const { classes } = ModalZoomStyles({}, { name: 'ModalZoom' });

React.useEffect(() => {
if(opened !== open) {
if (opened !== open) {
setOpen(opened);
center.current?.call();
}
}, [opened])
}, [opened]);

return (
<>
Expand Down

0 comments on commit 4d19431

Please sign in to comment.