Merge commit 'refs/pull/47/head' of https://github.com/drawdb-io/drawdb
This commit is contained in:
commit
f4f55faf2b
@ -103,18 +103,15 @@ export default function Area({ data, onMouseDown, setResize, setInitCoords }) {
|
|||||||
selectedElement.id === data.id
|
selectedElement.id === data.id
|
||||||
? "border-blue-500"
|
? "border-blue-500"
|
||||||
: "border-slate-400"
|
: "border-slate-400"
|
||||||
} w-full h-full cursor-move rounded relative`}
|
} w-full h-full cursor-move rounded`}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="opacity-40 w-fill p-2 h-full"
|
className="w-fill p-2 h-full"
|
||||||
style={{ backgroundColor: data.color }}
|
style={{ backgroundColor: `${data.color}66` }}
|
||||||
/>
|
>
|
||||||
</div>
|
<div className="flex justify-between">
|
||||||
<div className="text-color absolute top-2 left-3 select-none">
|
<div className="text-color select-none">{data.name}</div>
|
||||||
{data.name}
|
|
||||||
</div>
|
|
||||||
{(hovered || (areaIsSelected() && !layout.sidebar)) && (
|
{(hovered || (areaIsSelected() && !layout.sidebar)) && (
|
||||||
<div className="absolute top-2 right-3">
|
|
||||||
<Popover
|
<Popover
|
||||||
visible={areaIsSelected() && !layout.sidebar}
|
visible={areaIsSelected() && !layout.sidebar}
|
||||||
onClickOutSide={onClickOutSide}
|
onClickOutSide={onClickOutSide}
|
||||||
@ -129,14 +126,15 @@ export default function Area({ data, onMouseDown, setResize, setInitCoords }) {
|
|||||||
size="small"
|
size="small"
|
||||||
theme="solid"
|
theme="solid"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: "#2f68ad",
|
backgroundColor: "#2F68ADB3",
|
||||||
opacity: "0.7",
|
|
||||||
}}
|
}}
|
||||||
onClick={edit}
|
onClick={edit}
|
||||||
/>
|
/>
|
||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</foreignObject>
|
</foreignObject>
|
||||||
{hovered && (
|
{hovered && (
|
||||||
<>
|
<>
|
||||||
|
Loading…
Reference in New Issue
Block a user