From eebc1d86436e9cd7b9f6d24c1f973527f318853f Mon Sep 17 00:00:00 2001 From: Chu Quang Vinh Date: Thu, 24 Sep 2026 17:18:10 +0700 Subject: [PATCH] fix(ui): restore inner padding on form popups (#3673) #3376 put the shared wk-popover skin on the invite, share-link, create-user, reset-password and change-password popups. The skin sets padding:0 and overflow:hidden, which suits menus, and the same commit removed each popup's own padding, min-width and max-height rules. The forms now sit flush against the popup border and the primary button's corner is clipped. Add a wk-popover--form modifier that brings back the pre-#3376 frame (14px 16px padding, min/max width, scroll when tall) and put it on those five popups. Fixes #3672 --- frontend/src/assets/theme/tdesign-overrides.less | 13 +++++++++++++ frontend/src/views/settings/TenantMembers.vue | 4 ++-- frontend/src/views/settings/UserProfile.vue | 2 +- frontend/src/views/system/CreateUserDialog.vue | 2 +- frontend/src/views/system/ResetPasswordDialog.vue | 2 +- 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/frontend/src/assets/theme/tdesign-overrides.less b/frontend/src/assets/theme/tdesign-overrides.less index 75f63526..76cd951e 100644 --- a/frontend/src/assets/theme/tdesign-overrides.less +++ b/frontend/src/assets/theme/tdesign-overrides.less @@ -31,6 +31,19 @@ overscroll-behavior: contain; } +// The skin's padding:0 suits menus, whose items bring their own spacing. A popup +// that holds a form (invite, create user, change password) has no such inner +// padding, so add `wk-popover--form` next to `wk-popover` to give it the frame +// back, and let a tall form scroll instead of being clipped. +.wk-popover.wk-popover--form .t-popup__content { + padding: 14px 16px; + min-width: 300px; + max-width: min(392px, calc(100vw - 24px)); + max-height: min(480px, calc(100vh - 96px)); + overflow-y: auto; + overscroll-behavior: contain; +} + // A quiet option surface, with the brand accent reserved for the small check. .t-select-option.t-is-selected:not(.t-is-disabled), .t-select-option.t-is-selected:not(.t-is-disabled):hover { diff --git a/frontend/src/views/settings/TenantMembers.vue b/frontend/src/views/settings/TenantMembers.vue index 3ab5fb33..d2a4334d 100644 --- a/frontend/src/views/settings/TenantMembers.vue +++ b/frontend/src/views/settings/TenantMembers.vue @@ -198,7 +198,7 @@ + destroy-on-close overlay-class-name="wk-popover wk-popover--form member-invite-popup-overlay"> @@ -247,7 +247,7 @@ popup so the two flows live side-by-side: "I know who" (email input) vs "I don't" (one link, group chat). --> + destroy-on-close overlay-class-name="wk-popover wk-popover--form member-invite-popup-overlay"> diff --git a/frontend/src/views/settings/UserProfile.vue b/frontend/src/views/settings/UserProfile.vue index 94464a8d..6f314c0e 100644 --- a/frontend/src/views/settings/UserProfile.vue +++ b/frontend/src/views/settings/UserProfile.vue @@ -87,7 +87,7 @@ trigger="click" placement="bottom-end" destroy-on-close - overlay-class-name="wk-popover user-profile-password-popup-overlay" + overlay-class-name="wk-popover wk-popover--form user-profile-password-popup-overlay" >