jscheffl commented on code in PR #51943:
URL: https://github.com/apache/airflow/pull/51943#discussion_r2160492382
##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogContent.tsx:
##########
@@ -31,8 +34,50 @@ type Props = {
readonly wrap: boolean;
};
+const ScrollToButton = ({
+ direction,
+ onClick,
+}: {
+ readonly direction: "bottom" | "top";
+ readonly onClick: () => void;
+}) => {
+ const { t: translate } = useTranslation("common");
+
+ return (
+ <Tooltip
+ closeDelay={100}
+ content={translate("scroll.tooltip", {
+ direction: translate(`scroll.direction.${direction}`),
+ hotkey: direction === "bottom" ? "↓" : "↑",
Review Comment:
the hotkey text is missing the modifier key (ctrl on linux but the other
apple key on mac?)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]