From 59134ae38e4ddf51e7502ca041210439c2dce65c Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 1 Jul 2026 17:35:42 +0200 Subject: [PATCH] style(collections): custom dropdown for the permission role pickers (#1081) Swap the two native handleSetRole(member.user_id, e.target.value as CollectionRole)} - disabled={settingRoleId === member.user_id} - aria-label={t('collections.role.label')} - className="shrink-0 text-[11.5px] font-medium rounded-md border border-edge bg-surface-input text-content-secondary px-1.5 py-1 outline-none focus:border-accent disabled:opacity-50" - > - {ROLE_ORDER.map(r => )} - +
+ handleSetRole(member.user_id, v as CollectionRole)} + options={ROLE_ORDER.map(r => ({ value: r, label: t(`collections.role.${r}`) }))} + disabled={settingRoleId === member.user_id} + /> +
) : ( {t(`collections.role.${member.role ?? 'editor'}`)} @@ -264,14 +264,14 @@ export default function ShareCollectionModal({ searchable /> - +
+ setInviteRole(v as CollectionRole)} + options={ROLE_ORDER.map(r => ({ value: r, label: t(`collections.role.${r}`) }))} + /> +