More improvements to user pages

This commit is contained in:
Andrew Kingston 2022-08-02 19:49:15 +01:00
parent 2ec2030138
commit 15176d68f6
3 changed files with 15 additions and 9 deletions

View File

@ -72,8 +72,8 @@
<ModalContent
{onConfirm}
size="M"
title="Add new user"
confirmText="Add user"
title="Add new users"
confirmText="Add users"
confirmDisabled={disabled}
cancelText="Cancel"
showCloseIcon={false}

View File

@ -81,7 +81,7 @@
onConfirm={() => createUsersFromCsv({ userEmails, usersRole, userGroups })}
disabled={!userEmails.length || !validEmails(userEmails) || !usersRole}
>
<Body size="S">Import your users email addresses from a CSV</Body>
<Body size="S">Import your users email addresses from a CSV file</Body>
<div class="dropzone">
<input id="file-upload" accept=".csv" type="file" on:change={handleFile} />
@ -98,8 +98,8 @@
{#if hasGroupsLicense}
<Multiselect
bind:value={userGroups}
placeholder="Select User Groups"
label="User Groups"
placeholder="No groups"
label="Groups"
options={$groups}
getOptionLabel={option => option.name}
getOptionValue={option => option._id}
@ -122,14 +122,12 @@
label {
font-family: var(--font-sans);
cursor: pointer;
font-weight: 600;
box-sizing: border-box;
overflow: hidden;
border-radius: var(--border-radius-s);
color: var(--ink);
padding: var(--spacing-m) var(--spacing-l);
transition: all 0.2s ease 0s;
display: inline-flex;
text-rendering: optimizeLegibility;
min-width: auto;
@ -141,10 +139,15 @@
align-items: center;
justify-content: center;
width: 100%;
background-color: var(--grey-2);
font-size: var(--font-size-xs);
background: var(--spectrum-global-color-gray-200);
font-size: 12px;
line-height: normal;
border: var(--border-transparent);
transition: background-color 130ms ease-out;
}
label:hover {
background: var(--spectrum-global-color-gray-300);
cursor: pointer;
}
input[type="file"] {

View File

@ -319,4 +319,7 @@
align-items: center;
gap: var(--spacing-xl);
}
.controls-right :global(.spectrum-Search) {
width: 200px;
}
</style>