Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jmafoster1/237 consistent footer behaviour #698

Merged
merged 3 commits into from
Feb 3, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import React from "react";

import Box from "@mui/material/Box";
import { Grid2, Link } from "@mui/material";
import { Grid2, Link, Tooltip } from "@mui/material";
import Divider from "@mui/material/Divider";
import {
ExpandLessOutlined,
ExpandMoreOutlined,
UnfoldMore,
} from "@mui/icons-material";
import Tooltip from "@mui/material/Tooltip";
import Typography from "@mui/material/Typography";

import { getLanguageName } from "../../../Shared/Utils/languageUtils";
import { TextCopy } from "../../../Shared/Utils/TextCopy";
import { Translate } from "../../../Shared/Utils/Translate";
import { i18nLoadNamespace } from "components/Shared/Languages/i18nLoadNamespace";

export default function TextFooter({
classes,
Expand All @@ -26,6 +26,7 @@ export default function TextFooter({
setExpanded,
expanded,
}) {
const keyword = i18nLoadNamespace("components/Shared/utils");
return (
<Box>
<Divider />
Expand All @@ -43,12 +44,20 @@ export default function TextFooter({

{/* copy to clipboard */}
<Grid2 size={{ xs: 1 }} align={"right"} display="flex" pt={1.5}>
<TextCopy text={text} index={text} />
<Tooltip title={keyword("copy_to_clipboard")}>
<div>
<TextCopy text={text} index={text} />
</div>
</Tooltip>
</Grid2>

{/* translate */}
<Grid2 size={{ xs: 1 }} align={"right"} display="flex" pt={2}>
<Translate text={text} />
<Tooltip title={keyword("translate")}>
<div>
<Translate text={text} />
</div>
</Tooltip>
</Grid2>

{/* expand/minimise text */}
Expand Down Expand Up @@ -129,7 +138,7 @@ export function ExpandMinimise({
expanded,
}) {
return (
<Tooltip title={expandMinimiseText}>
<Tooltip title={expandMinimiseText} sx={{ cursor: "pointer" }}>
{/* <UnfoldMore
className={classes.toolTipIcon}
onClick={() => {
Expand Down
Loading