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
+11 -12
View File
@@ -352,18 +352,17 @@ export default function JobTable({ refreshToken, pageSize, onPageSizeChange, col
const expanded = menuJob?.id === job.id;
const label = `${t("jobTableActions")}: ${job.jobTitle}`;
return (
<Tooltip title={t("jobTableActions")}>
<IconButton
aria-label={label}
aria-haspopup="menu"
aria-expanded={expanded}
aria-controls={expanded ? rowMenuId : undefined}
onClick={event => setRowMenu({ id: job.id, anchor: event.currentTarget, mobile: isMobile, mode })}
sx={{ flexShrink: 0, width: isMobile ? 44 : 32, height: isMobile ? 44 : 32, "@media (pointer: coarse)": { width: 44, height: 44 } }}
>
<MoreHorizIcon fontSize="small" />
</IconButton>
</Tooltip>
<IconButton
title={t("jobTableActions")}
aria-label={label}
aria-haspopup="menu"
aria-expanded={expanded}
aria-controls={expanded ? rowMenuId : undefined}
onClick={event => setRowMenu({ id: job.id, anchor: event.currentTarget, mobile: isMobile, mode })}
sx={{ flexShrink: 0, width: isMobile ? 44 : 32, height: isMobile ? 44 : 32, "@media (pointer: coarse)": { width: 44, height: 44 } }}
>
<MoreHorizIcon fontSize="small" />
</IconButton>
);
};
@@ -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 }));
await waitFor(() => expect(screen.queryByRole("alert")).not.toBeInTheDocument());
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 () => {