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" >