Skip to content

Conversation

@abigailalexander
Copy link
Collaborator

This fixes the issue of Symbols not displaying for relative paths. I've also corrected some of the sizing of the symbols to match Phoebus.

Copy link
Collaborator

@GregJHarris GregJHarris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a couple of minor comments.

flipHorizontal ? -1 : 1
}) scaleY(${flipVertical ? -1 : 1})`,
objectFit: stretchToFit ? "fill" : "none",
objectFit: ratio ? "contain" : stretchToFit ? "fill" : "contain",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth simplifying this to something like:
objectFit: ratio || !stretchToFit ? "contain" : "fill",

}
);
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A general comment: Throughout this function we are mutating the object widgetDescription. Typescript prefers immutable objects. If I were to write this function opiPatchPaths from scratch I would have it return a new instance of WidgetDescription. Which I think would make its operation more transparent.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @GregJHarris, I agree it will make it more transparent. I hadn't properly noticed it was just mutating the existing widgetDescription.

@abigailalexander abigailalexander merged commit 9c75403 into master Nov 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants