Skip to content

Commit

Permalink
Trash repaired for Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
optimista committed Jun 23, 2021
1 parent 0dc9818 commit ce02ce6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fb/src/app/story/core/Trash.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const useStyles = makeStyles(theme => ({
position: "fixed",
width: 300,
transform: "translate(-50%, 50%)",
zIndex: -1
zIndex: 1
},
hover: { backgroundColor: theme.palette.primary.main },
icon: {
Expand Down
2 changes: 1 addition & 1 deletion fb/src/app/story/nodes/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useStyles = makeStyles(() => ({
const Image = ({ id: key, ...props }) => {
const state = useState(), { content, height, placeholder, width } = state.story.nodes[key], classes = useStyles();
return url(content) && height && width ?
<Box sx={{ '& > div': { display: "block !important" } }}>
<Box sx={{ '& > div': { display: "block !important", overflow: "visible !important" } }}>
<ImageNext blurDataURL={placeholder || Image.DEFAULT_PLACEHOLDER} className={classes.image} draggable="false" height={height} placeholder="blur" src={content} width={width} {...props} />
</Box>
:
Expand Down
2 changes: 1 addition & 1 deletion fb/src/app/story/state/actionsCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const actionsCreator = (state, action) => {

case "RENDER_NODE_RESIZE": {
const { height, key, width } = action;
return [{ type: "render-node-resize", key, height, width }].concat(state.caret.key === key ? [{ type: "on-present-ready", key, action: { type: "PRESENT", key }}].concat(state.story.nodes[key].type === "image" ? [{ type: "caret-blur" }] : []) : []); } // on-present-ready because INIT_EDITOR's add
return [{ type: "render-node-resize", key, height, width }].concat(state.caret?.key === key ? [{ type: "on-present-ready", key, action: { type: "PRESENT", key }}].concat(state.story.nodes[key].type === "image" ? [{ type: "caret-blur" }] : []) : []); } // on-present-ready because INIT_EDITOR's add

case "TEXT_LEFT_MOUSE_UP": {
const { key, x, y } = action;
Expand Down

0 comments on commit ce02ce6

Please sign in to comment.