Skip to content

Commit

Permalink
fix: click through issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phshy0607 committed May 10, 2022
1 parent c695ee2 commit 9ce1103
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/client/components/IFrameTools/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const IFrameTools: React.FC<IFrameToolsProps> = (props) => {
}, [url]);

return (
<StyledIFrameTools className="bottom-tools">
<StyledIFrameTools className="iframe-tools">
{qrCodeSrc && (
<StyledQrCode src={qrCodeSrc}>
<div className="qrcode-wrapper">
Expand Down
3 changes: 3 additions & 0 deletions src/client/components/IFrameTools/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ export const StyledIFrameTools = styled.div`
align-items: center;
width: 100%;
padding: 12px;
pointer-events: none;
`;

export const StyledQrCode = styled.div<{ src: string }>`
position: relative;
margin-right: 12px;
pointer-events: all;
.qrcode-wrapper {
position: relative;
display: flex;
Expand All @@ -36,4 +38,5 @@ export const StyledIconWrapper = styled.div`
display: flex;
align-items: center;
margin-right: 12px;
pointer-events: all;
`;
7 changes: 3 additions & 4 deletions src/client/components/SandBox/styled.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

import styled from 'styled-components'
import styled from "styled-components";

export const StyledSandBox = styled.div`
:hover .bottom-tools {
:hover .iframe-tools {
visibility: visible;
}
`
`;

0 comments on commit 9ce1103

Please sign in to comment.