mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-25 17:12:37 +02:00
33 lines
1015 B
JavaScript
33 lines
1015 B
JavaScript
import React from "react";
|
|
import { themeColor } from "../../utils/ThemeColor/backColor";
|
|
import { resizeBorderExtraWidth } from "../../utils/Utils";
|
|
function PlaceholderBorder(props) {
|
|
const getResizeBorderExtraWidth = resizeBorderExtraWidth();
|
|
|
|
return (
|
|
<div
|
|
className="borderResize"
|
|
style={{
|
|
borderColor: themeColor(),
|
|
borderStyle: "dashed",
|
|
// width: props.pos.Width
|
|
// ? props.pos.Width + getResizeBorderExtraWidth
|
|
// : 150 + getResizeBorderExtraWidth,
|
|
// height: props.pos.Height
|
|
// ? props.pos.Height + getResizeBorderExtraWidth
|
|
// : 60 + getResizeBorderExtraWidth,
|
|
width:
|
|
props?.posWidth(props.pos, props?.isSignYourself) +
|
|
getResizeBorderExtraWidth,
|
|
height:
|
|
props?.posHeight(props.pos, props?.isSignYourself) +
|
|
getResizeBorderExtraWidth,
|
|
borderWidth: "0.2px",
|
|
overflow: "hidden"
|
|
}}
|
|
></div>
|
|
);
|
|
}
|
|
|
|
export default PlaceholderBorder;
|