feat: ClashFieldViewer BaseDialog maxHeight usage percentage (#813)

*The overall interface will be more intuitive when the content is longer.
This commit is contained in:
Majokeiko 2023-10-10 01:29:27 -05:00 committed by GitHub
parent afc77e7adc
commit f5ee6f3537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}