use standard div element and warning icon

This commit is contained in:
Simon Knott 2024-09-09 13:29:35 +02:00
parent 4ff7b320b4
commit f0d12bfaa5
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -14,23 +14,12 @@
* limitations under the License. * limitations under the License.
*/ */
import 'react';
declare module 'react' {
namespace JSX {
interface IntrinsicElements {
'x-pw-pointer': JSX.IntrinsicElements['div'];
}
}
}
export function ClickPointer({ point }: { point: { x: number; y: number } }) { export function ClickPointer({ point }: { point: { x: number; y: number } }) {
return ( return (
<x-pw-pointer <div
style={{ style={{
position: 'fixed', position: 'fixed',
backgroundColor: '#f44336', backgroundColor: '#f44336',
boxShadow: '0px 0px 60px 20px #f44336',
width: '20px', width: '20px',
height: '20px', height: '20px',
borderRadius: '10px', borderRadius: '10px',
@ -42,7 +31,18 @@ export function ClickPointer({ point }: { point: { x: number; y: number } }) {
left: `${point.x}px`, left: `${point.x}px`,
top: `${point.y}px`, top: `${point.y}px`,
}} }}
title='Click positions on screenshots are inaccurate' >
/> <div
style={{
fontSize: '19px',
color: 'white',
marginTop: '-3.5px',
userSelect: 'none'
}}
title='Click positions on screenshots are inaccurate.'
>
</div>
</div>
); );
} }