mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
chore: adjust toast top distance (#2953)
* adjust toast top distance * save button top
This commit is contained in:
@@ -25,7 +25,12 @@ const SaveButton = ({
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const [isSave, setIsSave] = useState(false);
|
||||
const { toast } = useToast();
|
||||
const { toast } = useToast({
|
||||
containerStyle: {
|
||||
mt: 20,
|
||||
fontSize: 'sm'
|
||||
}
|
||||
});
|
||||
|
||||
const {
|
||||
isOpen: isSaveAndPublishModalOpen,
|
||||
|
@@ -20,7 +20,12 @@ const SaveAndPublishModal = ({
|
||||
onClickSave: (data: { isPublish: boolean; versionName: string }) => Promise<void>;
|
||||
}) => {
|
||||
const { t } = useTranslation();
|
||||
const { toast } = useToast();
|
||||
const { toast } = useToast({
|
||||
containerStyle: {
|
||||
mt: 20,
|
||||
fontSize: 'sm'
|
||||
}
|
||||
});
|
||||
const { register, handleSubmit } = useForm<FormType>({
|
||||
defaultValues: {
|
||||
versionName: formatTime2YMDHMS(new Date()),
|
||||
|
Reference in New Issue
Block a user