Skip to content

Commit

Permalink
wip: fix size of label when small, set stroke color of label when sel…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
Tethik committed Jul 2, 2024
1 parent d9c2898 commit 5539471
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/components/model/board/shapes/TrustBoundary.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function TrustBoundary({
draggable={draggable}
ref={shapeRef}
width={width}
cornerRadius={20}
cornerRadius={15}
height={height}
dash={[3, 3]}
fill={null}
Expand Down Expand Up @@ -120,7 +120,7 @@ export function TrustBoundary({
width={labelWidth + 50}
height={26}
onClick={onClick}
stroke={"#000000"}
stroke={selected ? "#FFB3C7" : "#000000"}
strokeWidth={1}
fill={"#FFFFFF"}
cornerRadius={5}
Expand All @@ -141,7 +141,7 @@ export function TrustBoundary({
<Indicator x={x + 30} y={y - 8} componentId={id} />

<TechStackIcons
x={x + 45 + guesstimatedLabelWidth + 24} // Bit of a hack to center the icons. Assuming here that the icons are *roughly* 26px wide.
x={x + 45 + Math.min(labelWidth, guesstimatedLabelWidth) + 24} // Bit of a hack to center the icons. Assuming here that the icons are *roughly* 26px wide.
y={y - 11}
classes={(classes || []).slice(0, 3)}
/>
Expand Down

0 comments on commit 5539471

Please sign in to comment.