feat: ClashFieldViewer BaseDialog maxHeight usage percentage

*The overall interface will be more intuitive when the content is longer.
This commit is contained in:
keiko233 2023-10-09 17:38:06 +08:00
parent 8a5f12b97c
commit 2819ca9c48

View file

@ -143,7 +143,7 @@ export const ProfileViewer = forwardRef<ProfileViewerRef, Props>(
<BaseDialog
open={open}
title={openType === "new" ? t("Create Profile") : t("Edit Profile")}
contentSx={{ width: 375, pb: 0, maxHeight: 320 }}
contentSx={{ width: 375, pb: 0, maxHeight: "80%" }}
okBtn={t("Save")}
cancelBtn={t("Cancel")}
onClose={handleClose}