Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Filip Andrzej Kaminski authored and Filip Andrzej Kaminski committed Apr 4, 2024
1 parent 5ea4d19 commit 7601aa9
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions packages/vscode-extension/src/webview/components/Preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,15 +173,17 @@ function Preview({ isInspecting, setIsInspecting }) {
tabIndex={0} // allows keyboard events to be captured
ref={wrapperDivRef}>
{!isStarting && !hasBuildError && (
<div className="phone-content" {...touchHandlers}>
<img
src={previewURL}
ref={previewRef}
style={{
cursor: isInspecting ? "crosshair" : "default",
}}
className="phone-screen"
/>
<div className="phone-content">
<div {...touchHandlers}>
<img
src={previewURL}
ref={previewRef}
style={{
cursor: isInspecting ? "crosshair" : "default",
}}
className="phone-screen"
/>
</div>
{inspectFrame && (
<div className="phone-screen phone-inspect-overlay">
<div
Expand Down

0 comments on commit 7601aa9

Please sign in to comment.