Skip to content

Commit

Permalink
Add tooltip to explain timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
philmcmahon committed Feb 20, 2025
1 parent b37b4e4 commit c6f4d11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@

MINIMUM_ANIMATION_DURATION_IN_MILLISECONDS = 300
NO_DELAY = 1
LAST_UPDATED_LABEL_TOOLTIP="Time of last activity from source"


class BottomPane(QWidget):
Expand Down Expand Up @@ -1594,6 +1595,7 @@ def __init__(
self.timestamp.setSizePolicy(retain_space)
self.timestamp.setFixedWidth(self.TIMESTAMP_WIDTH)
self.timestamp.setObjectName("SourceWidget_timestamp")
self.timestamp.setToolTip(LAST_UPDATED_LABEL_TOOLTIP)

# Create source_widget:
# -------------------------------------------------------------------
Expand Down Expand Up @@ -3812,6 +3814,7 @@ def __init__(self, last_updated): # type: ignore[no-untyped-def]

# Set CSS id
self.setObjectName("LastUpdatedLabel")
self.setToolTip(LAST_UPDATED_LABEL_TOOLTIP)


class SourceProfileShortWidget(QWidget):
Expand Down

0 comments on commit c6f4d11

Please sign in to comment.