FEATURE: add tooltips to timeline start/end dates (#18294)

This commit is contained in:
Kris 2022-09-20 21:46:14 -04:00 committed by GitHub
parent c607cdd923
commit b98cd73ace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -579,6 +579,9 @@ export default createWidget("topic-timeline", {
className: "start-date",
rawLabel: timelineDate(createdAt),
action: "jumpTop",
attributes: {
"data-tooltip": I18n.t("topic_entrance.sr_jump_top_button"),
},
})
),
this.attach("timeline-scrollarea", attrs),
@ -588,6 +591,9 @@ export default createWidget("topic-timeline", {
className: "now-date",
rawLabel: bottomAge,
action: "jumpBottom",
attributes: {
"data-tooltip": I18n.t("topic_entrance.sr_jump_bottom_button"),
},
})
),
];

View File

@ -214,6 +214,7 @@
.start-date {
@include unselectable;
color: var(--primary-med-or-secondary-med);
cursor: pointer;
}
.timeline-scrollarea {
@ -300,6 +301,7 @@
display: inline-block;
color: var(--primary-med-or-secondary-med);
margin-top: 0.5em;
cursor: pointer;
}
}
}