mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-17 16:45:02 +00:00
fix: incorrect popover position (#5568)
This commit is contained in:
@@ -330,23 +330,23 @@ const FavouriteAppSetting = ({ Header }: Props) => {
|
|||||||
|
|
||||||
{/* action */}
|
{/* action */}
|
||||||
<Td p="0" w="0" textAlign="center">
|
<Td p="0" w="0" textAlign="center">
|
||||||
<PopoverConfirm
|
<Box w="158px">
|
||||||
type="delete"
|
<PopoverConfirm
|
||||||
content={t('chat:setting.favourite.delete_app_confirm')}
|
type="delete"
|
||||||
onConfirm={() => {
|
content={t('chat:setting.favourite.delete_app_confirm')}
|
||||||
setLocalFavourites((prev) => {
|
onConfirm={() => {
|
||||||
const next = prev.filter((_, i) => i !== index);
|
setLocalFavourites((prev) => {
|
||||||
// reset order
|
const next = prev.filter((_, i) => i !== index);
|
||||||
const ordered = next.map((item, idx) => ({
|
// reset order
|
||||||
...item,
|
const ordered = next.map((item, idx) => ({
|
||||||
order: idx
|
...item,
|
||||||
}));
|
order: idx
|
||||||
deleteApp(row._id);
|
}));
|
||||||
return ordered;
|
deleteApp(row._id);
|
||||||
});
|
return ordered;
|
||||||
}}
|
});
|
||||||
Trigger={
|
}}
|
||||||
<Box w="158px">
|
Trigger={
|
||||||
<IconButton
|
<IconButton
|
||||||
size="sm"
|
size="sm"
|
||||||
aria-label="delete"
|
aria-label="delete"
|
||||||
@@ -356,9 +356,9 @@ const FavouriteAppSetting = ({ Header }: Props) => {
|
|||||||
<MyIcon name="common/trash" w="20px" color="myGray.400" />
|
<MyIcon name="common/trash" w="20px" color="myGray.400" />
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
</Box>
|
}
|
||||||
}
|
/>
|
||||||
/>
|
</Box>
|
||||||
</Td>
|
</Td>
|
||||||
</Tr>
|
</Tr>
|
||||||
)}
|
)}
|
||||||
|
Reference in New Issue
Block a user