diff --git a/artiq/dashboard/moninj.py b/artiq/dashboard/moninj.py index ab9b741c9..96008e21a 100644 --- a/artiq/dashboard/moninj.py +++ b/artiq/dashboard/moninj.py @@ -40,8 +40,12 @@ class _MoninjWidget(QtWidgets.QFrame): self.grid.setHorizontalSpacing(0) self.grid.setVerticalSpacing(0) self.setLayout(self.grid) + tooltip = title + if len(title) > 20: + title = title[:11] + "..." + title[-6:] label = QtWidgets.QLabel(title) label.setAlignment(QtCore.Qt.AlignHCenter | QtCore.Qt.AlignTop) + label.setToolTip(tooltip) self.grid.addWidget(label, 1, 1)