File tree Expand file tree Collapse file tree
editor-packages/editor-canvas Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ export function HudSurface({
6565 xy = { absxy }
6666 wh = { [ node . width , node . height ] }
6767 zoom = { zoom }
68+ selected = { selectedNodes . some (
69+ ( selectedNode ) => selectedNode . id === node . id
70+ ) }
6871 onSelect = { ( ) => onSelectNode ( node . id ) }
6972 onHoverChange = { ( hv ) => {
7073 if ( hv ) {
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export function FrameTitle({
99 wh,
1010 zoom,
1111 highlight = false ,
12+ selected,
1213 onHoverChange,
1314 onSelect,
1415} : {
@@ -23,12 +24,13 @@ export function FrameTitle({
2324 wh : [ number , number ] ;
2425 zoom : number ;
2526 highlight ?: boolean ;
27+ selected ?: boolean ;
2628 onHoverChange ?: ( hover : boolean ) => void ;
2729 onSelect ?: ( ) => void ;
2830} ) {
2931 const [ x , y ] = xy ;
3032 const [ w , h ] = wh ;
31- const view_height = 20 ;
33+ const view_height = 24 ;
3234
3335 const height_considered_y_transform = y - view_height ;
3436
@@ -58,12 +60,13 @@ export function FrameTitle({
5860 transform : `translateX(${ x } px) translateY(${ height_considered_y_transform } px)` ,
5961 display : "flex" ,
6062 flexDirection : "row" ,
63+ alignItems : "center" ,
6164 } }
6265 { ...hoverProps }
6366 >
6467 < TitleLabel
6568 color = {
66- highlight || hoverred
69+ selected || highlight || hoverred
6770 ? color_frame_title . highlight
6871 : color_frame_title . default
6972 }
You can’t perform that action at this time.
0 commit comments