Merge pull request #594 from trails-cool/fix/planner-note-tooltip-width-align
fix(planner): note tooltip fixed width + centered text
This commit is contained in:
commit
f751f5057d
1 changed files with 1 additions and 1 deletions
|
|
@ -218,7 +218,7 @@ export function PlannerMap({ yjs, sessionId, onRouteRequest, highlightPosition,
|
||||||
>
|
>
|
||||||
{wp.note && (
|
{wp.note && (
|
||||||
<Tooltip direction="top" offset={[0, -14]} opacity={0.95}>
|
<Tooltip direction="top" offset={[0, -14]} opacity={0.95}>
|
||||||
<span style={{ maxWidth: 220, display: "inline-block", whiteSpace: "pre-wrap", overflowWrap: "break-word" }}>
|
<span style={{ width: 200, display: "inline-block", textAlign: "center", whiteSpace: "pre-wrap", overflowWrap: "break-word" }}>
|
||||||
{wp.note.length > 120 ? wp.note.slice(0, 120) + "…" : wp.note}
|
{wp.note.length > 120 ? wp.note.slice(0, 120) + "…" : wp.note}
|
||||||
</span>
|
</span>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue