FEATURE: add tooltips to timeline start/end dates (#18294)
This commit is contained in:
parent
c607cdd923
commit
b98cd73ace
|
@ -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"),
|
||||
},
|
||||
})
|
||||
),
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue