mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
fix: incorrect popover position (#5568)
Some checks are pending
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
Some checks are pending
Build FastGPT images in Personal warehouse / get-vars (push) Waiting to run
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:amd64 runs-on:ubuntu-24.04]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / build-fastgpt-images (map[arch:arm64 runs-on:ubuntu-24.04-arm]) (push) Blocked by required conditions
Build FastGPT images in Personal warehouse / release-fastgpt-images (push) Blocked by required conditions
This commit is contained in:
parent
6e8bf8c804
commit
76a03a8363
|
|
@ -330,23 +330,23 @@ const FavouriteAppSetting = ({ Header }: Props) => {
|
|||
|
||||
{/* action */}
|
||||
<Td p="0" w="0" textAlign="center">
|
||||
<PopoverConfirm
|
||||
type="delete"
|
||||
content={t('chat:setting.favourite.delete_app_confirm')}
|
||||
onConfirm={() => {
|
||||
setLocalFavourites((prev) => {
|
||||
const next = prev.filter((_, i) => i !== index);
|
||||
// reset order
|
||||
const ordered = next.map((item, idx) => ({
|
||||
...item,
|
||||
order: idx
|
||||
}));
|
||||
deleteApp(row._id);
|
||||
return ordered;
|
||||
});
|
||||
}}
|
||||
Trigger={
|
||||
<Box w="158px">
|
||||
<Box w="158px">
|
||||
<PopoverConfirm
|
||||
type="delete"
|
||||
content={t('chat:setting.favourite.delete_app_confirm')}
|
||||
onConfirm={() => {
|
||||
setLocalFavourites((prev) => {
|
||||
const next = prev.filter((_, i) => i !== index);
|
||||
// reset order
|
||||
const ordered = next.map((item, idx) => ({
|
||||
...item,
|
||||
order: idx
|
||||
}));
|
||||
deleteApp(row._id);
|
||||
return ordered;
|
||||
});
|
||||
}}
|
||||
Trigger={
|
||||
<IconButton
|
||||
size="sm"
|
||||
aria-label="delete"
|
||||
|
|
@ -356,9 +356,9 @@ const FavouriteAppSetting = ({ Header }: Props) => {
|
|||
<MyIcon name="common/trash" w="20px" color="myGray.400" />
|
||||
}
|
||||
/>
|
||||
</Box>
|
||||
}
|
||||
/>
|
||||
}
|
||||
/>
|
||||
</Box>
|
||||
</Td>
|
||||
</Tr>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Reference in New Issue