From de7e322fbbbabc7c863e4046998f55813e0e8b14 Mon Sep 17 00:00:00 2001 From: DacongDA Date: Sat, 7 Jun 2025 00:30:41 +0800 Subject: [PATCH] feat: limit the width of the organization.hasPrivilegeConsent popconfirm (#3869) --- web/src/OrganizationEditPage.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/web/src/OrganizationEditPage.js b/web/src/OrganizationEditPage.js index e7eadbf3..23f06f58 100644 --- a/web/src/OrganizationEditPage.js +++ b/web/src/OrganizationEditPage.js @@ -277,14 +277,20 @@ class OrganizationEditPage extends React.Component { {Setting.getLabel(i18next.t("organization:Has privilege consent"), i18next.t("organization:Has privilege consent - Tooltip"))} : - {this.updateOrganizationField("hasPrivilegeConsent", !this.state.organization.hasPrivilegeConsent);}} - okText={i18next.t("general:OK")} - cancelText={i18next.t("general:Cancel")} - > - - + { + !this.state.organization.hasPrivilegeConsent ? ( + {this.updateOrganizationField("hasPrivilegeConsent", !this.state.organization.hasPrivilegeConsent);}} + okText={i18next.t("general:OK")} + cancelText={i18next.t("general:Cancel")} + styles={{root: {width: "800px"}}} + > + + + ) : + {this.updateOrganizationField("hasPrivilegeConsent", !this.state.organization.hasPrivilegeConsent);}} /> + } ) : null