mirror of
https://github.com/drawdb-io/drawdb.git
synced 2025-12-21 01:07:24 +08:00
Fix subject area title overflow
This commit is contained in:
@@ -109,8 +109,10 @@ export default function Area({ data, onMouseDown, setResize, setInitCoords }) {
|
|||||||
className="w-fill p-2 h-full"
|
className="w-fill p-2 h-full"
|
||||||
style={{ backgroundColor: `${data.color}66` }}
|
style={{ backgroundColor: `${data.color}66` }}
|
||||||
>
|
>
|
||||||
<div className="flex justify-between">
|
<div className="flex justify-between gap-1 w-full">
|
||||||
<div className="text-color select-none">{data.name}</div>
|
<div className="text-color select-none overflow-hidden text-ellipsis">
|
||||||
|
{data.name}
|
||||||
|
</div>
|
||||||
{(hovered || (areaIsSelected() && !layout.sidebar)) && (
|
{(hovered || (areaIsSelected() && !layout.sidebar)) && (
|
||||||
<Popover
|
<Popover
|
||||||
visible={areaIsSelected() && !layout.sidebar}
|
visible={areaIsSelected() && !layout.sidebar}
|
||||||
|
|||||||
Reference in New Issue
Block a user