Fix Context card being clickable in Nuke 14/15 only outside the Context label area. Previously you could only click on the far left or far right side of the context card to be able to select it and access the Context attributes.

Cosmetically the removal of the `<span>` doesn't do much to the Context card because it doesn't have a sublabel.
This commit is contained in:
Roy Nieterau 2025-11-17 12:18:07 +01:00
parent c3dac96dfd
commit 1c25e35777

View file

@ -211,7 +211,7 @@ class ContextCardWidget(CardWidget):
icon_widget = PublishPixmapLabel(None, self)
icon_widget.setObjectName("ProductTypeIconLabel")
label_widget = QtWidgets.QLabel(f"<span>{CONTEXT_LABEL}</span>", self)
label_widget = QtWidgets.QLabel(CONTEXT_LABEL, self)
icon_layout = QtWidgets.QHBoxLayout()
icon_layout.setContentsMargins(5, 5, 5, 5)