π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nc-gui): invite modal UI changes
Ramesh Manebc3ce24a56a4
diff --git a/packages/nc-gui/components/dlg/InviteDlg.vue b/packages/nc-gui/components/dlg/InviteDlg.vueindex 6b7946208d..eeb7c6851d 100644--- a/packages/nc-gui/components/dlg/InviteDlg.vue+++ b/packages/nc-gui/components/dlg/InviteDlg.vue@@ -402,14 +402,14 @@ const removeEmail = (index: number) => {</template><div class="flex items-center justify-between gap-3 mt-2"><div class="flex w-full gap-4 flex-col">- <div class="flex justify-between gap-3 w-full">+ <div class="flex flex-col gap-6 md:(flex-row gap-3 justify-between) w-full"><divref="divRef":class="{- 'border-primary/100': isDivFocused,+ 'border-primary/100 shadow-selected': isDivFocused,'p-1': emailBadges?.length > 0,}"- class="flex items-center flex-wrap border-1 gap-1 w-full overflow-x-scroll nc-scrollbar-x-md min-h-10 rounded-lg !min-w-96"+ class="flex items-center flex-wrap border-1 gap-1 w-full overflow-x-scroll nc-scrollbar-x-md min-h-10 rounded-lg md:!min-w-96"tabindex="0"@blur="isDivFocused = false"@click="focusOnDiv"@@ -429,10 +429,11 @@ const removeEmail = (index: number) => {<inputid="email"ref="focusRef"+ inputmode="email"v-model="inviteData.email":disabled="isLoading":placeholder="$t('activity.enterEmail')"- class="flex-1 min-w-36 outline-none px-2"+ class="flex-1 md:min-w-36 outline-none px-2"data-testid="email-input"@blur="isDivFocused = false"@keyup.enter="handleEnter"@@ -440,16 +441,20 @@ const removeEmail = (index: number) => {@input="warningMsg = null"/></div>- <div class="flex items-center">- <RolesSelector- :description="false"- :on-role-change="onRoleChange"- :role="inviteData.roles"- :disabled-roles="disabledRoles"- :roles="allowedRoles"- class="!min-w-[152px] nc-invite-role-selector"- size="lg"- />+ <div class="flex items-center justify-between gap-4">+ <div class="md:hidden text-nc-content-gray text-bodyLg">{{ $t('labels.selectRole') }}:</div>+ <div class="flex items-center">+ <RolesSelector+ :description="false"+ :on-role-change="onRoleChange"+ :role="inviteData.roles"+ :disabled-roles="disabledRoles"+ :roles="allowedRoles"+ class="!min-w-[152px] nc-invite-role-selector"+ size="lg"+ placement="bottomRight"+ />+ </div></div></div><!-- show warning if validation fails and warningMsg defined -->diff --git a/packages/nc-gui/components/roles/Selector.vue b/packages/nc-gui/components/roles/Selector.vueindex 6ccac2ea1d..d1cf4374a9 100644--- a/packages/nc-gui/components/roles/Selector.vue+++ b/packages/nc-gui/components/roles/Selector.vue@@ -14,12 +14,14 @@ const props = withDefaults(inherit?: stringsize?: 'sm' | 'md' | 'lg'showInherit?: boolean+ placement?: 'bottomRight' | 'bottomLeft'}>(),{border: true,description: true,size: 'sm',showInherit: false,+ placement: 'bottomLeft',},)@@ -90,7 +92,12 @@ const closeOnClickOption = (optionValue: keyof typeof RoleLabels) => {:open="isDropdownOpen":dropdown-match-select-width="false"dropdown-class-name="!rounded-lg !h-fit max-w-[350px] nc-role-selector-dropdown"- class="py-1 !absolute top-0 left-0 w-20 h-full z-10 text-xs opacity-0"+ class="py-1 !absolute top-0 w-20 h-full z-10 text-xs opacity-0"+ :class="{+ 'right-0': placement === 'bottomRight',+ 'left-0': placement !== 'bottomRight',+ }"+ :placement="placement"@change="onChangeRole"><a-select-option v-for="rl in props.disabledRoles || []" :key="rl" :value="rl" disabled>@@ -121,7 +128,7 @@ const closeOnClickOption = (optionValue: keyof typeof RoleLabels) => {'w-full': descriptionRef,'w-[200px]': !descriptionRef,}"- class="flex flex-col nc-role-select-dropdown gap-1"+ class="h-full flex flex-col justify-center nc-role-select-dropdown gap-1"><div class="flex items-center justify-between"><RolesBadge :border="false" :class="`nc-role-select-${rl}`" :inherit="inheritRef === rl" :role="rl" />diff --git a/packages/nc-gui/lang/en.json b/packages/nc-gui/lang/en.jsonindex ff77086b5b..649d4e6685 100644--- a/packages/nc-gui/lang/en.json+++ b/packages/nc-gui/lang/en.json@@ -1488,7 +1488,8 @@"newScript": "New Script","emptyScript": "Empty Script","enterFullscreen": "Enter fullscreen",- "exitFullscreen": "Exit fullscreen"+ "exitFullscreen": "Exit fullscreen",+ "selectRole": "Select Role"},"activity": {"clickToResolve": "Click to resolve",