Skip to content

Commit

Permalink
Set zIndex on pop
Browse files Browse the repository at this point in the history
  • Loading branch information
homanp committed Aug 17, 2023
1 parent 58f7af5 commit bddcaf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion embed/dist/web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion embed/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "superagent-chat-embed",
"version": "0.0.3",
"version": "0.0.4",
"description": "A embadable chat widget.",
"main": "dist/web.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion embed/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function SuperagentWidget({ agentId, apiKey, type }) {
<ChakraProvider>
{agent && !isOpen && (
<Avatar
zIndex={99999999}
boxShadow="md"
width="55px"
height="55px"
Expand All @@ -102,6 +103,7 @@ function SuperagentWidget({ agentId, apiKey, type }) {
)}
{agent && isOpen && (
<IconButton
zIndex={99999999}
boxShadow="md"
borderRadius="full"
icon={<Icon as={TbX} fontSize="2xl" />}
Expand All @@ -117,7 +119,7 @@ function SuperagentWidget({ agentId, apiKey, type }) {
/>
)}
{agent && (
<Box {...styles.modalContainer} display={!isOpen && "none"}>
<Box {...styles.modalContainer} display={!isOpen && "none"} zIndex={99999999}>
<iframe
style={styles.iframe}
width="100%"
Expand Down

0 comments on commit bddcaf7

Please sign in to comment.