Show full region names on root map instead of CSS ellipsis.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-07 17:11:09 +08:00
parent 137597cd25
commit fe754229d3
2 changed files with 14 additions and 5 deletions

View file

@ -5033,9 +5033,9 @@ pre {
font-weight: 700; font-weight: 700;
line-height: 1.25; line-height: 1.25;
color: inherit; color: inherit;
overflow: hidden; white-space: normal;
text-overflow: ellipsis; overflow-wrap: anywhere;
white-space: nowrap; text-align: center;
} }
.topo-region-hex__title { .topo-region-hex__title {
display: flex; display: flex;
@ -5047,7 +5047,7 @@ pre {
min-width: 0; min-width: 0;
} }
.topo-region-hex__title .topo-region-hex__name { .topo-region-hex__title .topo-region-hex__name {
max-width: 70%; max-width: 100%;
} }
.topo-region-hex__meta { .topo-region-hex__meta {
display: inline; display: inline;
@ -7392,6 +7392,15 @@ pre {
height: 17px; height: 17px;
} }
.topo-node.is-region .topo-node__caption {
max-width: none;
}
.topo-node.is-region .topo-node__caption-name {
overflow: visible;
text-overflow: clip;
}
.topo-node__glyph { .topo-node__glyph {
position: relative; position: relative;
width: 25px; width: 25px;

View file

@ -774,7 +774,7 @@ const NeNode = memo(function NeNode({ data, selected }: NodeProps<Node<NeNodeDat
}${showBadge ? " is-placeholder" : ""}${isRegion ? " is-region" : ""}`} }${showBadge ? " is-placeholder" : ""}${isRegion ? " is-region" : ""}`}
title={ title={
isRegion isRegion
? "Open region canvas" ? name
: showBadge : showBadge
? data.managed_source || "placeholder" ? data.managed_source || "placeholder"
: name : name