More improvements to user pages
This commit is contained in:
parent
c2bad6133d
commit
1f7784c6c0
3 changed files with 15 additions and 9 deletions
|
@ -72,8 +72,8 @@
|
||||||
<ModalContent
|
<ModalContent
|
||||||
{onConfirm}
|
{onConfirm}
|
||||||
size="M"
|
size="M"
|
||||||
title="Add new user"
|
title="Add new users"
|
||||||
confirmText="Add user"
|
confirmText="Add users"
|
||||||
confirmDisabled={disabled}
|
confirmDisabled={disabled}
|
||||||
cancelText="Cancel"
|
cancelText="Cancel"
|
||||||
showCloseIcon={false}
|
showCloseIcon={false}
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
onConfirm={() => createUsersFromCsv({ userEmails, usersRole, userGroups })}
|
onConfirm={() => createUsersFromCsv({ userEmails, usersRole, userGroups })}
|
||||||
disabled={!userEmails.length || !validEmails(userEmails) || !usersRole}
|
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">
|
<div class="dropzone">
|
||||||
<input id="file-upload" accept=".csv" type="file" on:change={handleFile} />
|
<input id="file-upload" accept=".csv" type="file" on:change={handleFile} />
|
||||||
|
@ -98,8 +98,8 @@
|
||||||
{#if hasGroupsLicense}
|
{#if hasGroupsLicense}
|
||||||
<Multiselect
|
<Multiselect
|
||||||
bind:value={userGroups}
|
bind:value={userGroups}
|
||||||
placeholder="Select User Groups"
|
placeholder="No groups"
|
||||||
label="User Groups"
|
label="Groups"
|
||||||
options={$groups}
|
options={$groups}
|
||||||
getOptionLabel={option => option.name}
|
getOptionLabel={option => option.name}
|
||||||
getOptionValue={option => option._id}
|
getOptionValue={option => option._id}
|
||||||
|
@ -122,14 +122,12 @@
|
||||||
|
|
||||||
label {
|
label {
|
||||||
font-family: var(--font-sans);
|
font-family: var(--font-sans);
|
||||||
cursor: pointer;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: var(--border-radius-s);
|
border-radius: var(--border-radius-s);
|
||||||
color: var(--ink);
|
color: var(--ink);
|
||||||
padding: var(--spacing-m) var(--spacing-l);
|
padding: var(--spacing-m) var(--spacing-l);
|
||||||
transition: all 0.2s ease 0s;
|
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
min-width: auto;
|
min-width: auto;
|
||||||
|
@ -141,10 +139,15 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: var(--grey-2);
|
background: var(--spectrum-global-color-gray-200);
|
||||||
font-size: var(--font-size-xs);
|
font-size: 12px;
|
||||||
line-height: normal;
|
line-height: normal;
|
||||||
border: var(--border-transparent);
|
border: var(--border-transparent);
|
||||||
|
transition: background-color 130ms ease-out;
|
||||||
|
}
|
||||||
|
label:hover {
|
||||||
|
background: var(--spectrum-global-color-gray-300);
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type="file"] {
|
input[type="file"] {
|
||||||
|
|
|
@ -319,4 +319,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: var(--spacing-xl);
|
gap: var(--spacing-xl);
|
||||||
}
|
}
|
||||||
|
.controls-right :global(.spectrum-Search) {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue