fix(applications): keep row actions within viewport

This commit is contained in:
cesnimda
2026-11-10 23:10:21 +01:00
parent 86c589a0e0
commit bfbfaeb903
2 changed files with 12 additions and 13 deletions
+1 -2
View File
@@ -352,8 +352,8 @@ export default function JobTable({ refreshToken, pageSize, onPageSizeChange, col
const expanded = menuJob?.id === job.id; const expanded = menuJob?.id === job.id;
const label = `${t("jobTableActions")}: ${job.jobTitle}`; const label = `${t("jobTableActions")}: ${job.jobTitle}`;
return ( return (
<Tooltip title={t("jobTableActions")}>
<IconButton <IconButton
title={t("jobTableActions")}
aria-label={label} aria-label={label}
aria-haspopup="menu" aria-haspopup="menu"
aria-expanded={expanded} aria-expanded={expanded}
@@ -363,7 +363,6 @@ export default function JobTable({ refreshToken, pageSize, onPageSizeChange, col
> >
<MoreHorizIcon fontSize="small" /> <MoreHorizIcon fontSize="small" />
</IconButton> </IconButton>
</Tooltip>
); );
}; };
@@ -205,7 +205,7 @@ test("density survives an empty result and a failed refresh with the existing re
fireEvent.click(screen.getByRole("button", { name: /retry/i })); fireEvent.click(screen.getByRole("button", { name: /retry/i }));
await waitFor(() => expect(screen.queryByRole("alert")).not.toBeInTheDocument()); await waitFor(() => expect(screen.queryByRole("alert")).not.toBeInTheDocument());
expect(screen.getByRole("combobox", { name: t.listDensity })).toHaveTextContent(t.densityCompact); expect(screen.getByRole("combobox", { name: t.listDensity })).toHaveTextContent(t.densityCompact);
expect(screen.queryByText(job.jobTitle)).not.toBeInTheDocument(); await waitFor(() => expect(screen.queryByText(job.jobTitle)).not.toBeInTheDocument());
}); });
test("Bokmål display localizes standard statuses without changing API values or custom status filters", async () => { test("Bokmål display localizes standard statuses without changing API values or custom status filters", async () => {