Skip to content

Commit

Permalink
Use small button ibutton instead
Browse files Browse the repository at this point in the history
Signed-off-by: Don Alfons Nisnoni <[email protected]>
  • Loading branch information
itsdonnix committed Mar 29, 2021
1 parent b9d8499 commit 81d7d7b
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions src/main/frontend/src/components/GroupMembers.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import SmallButton from '../components/SmallButton.svelte';
import { users } from '../stores/users.js';
import { mdiMinus, mdiPlus } from '@mdi/js';
import { Button, Icon } from 'svelte-materialify/src';
export let members = [];
Expand Down Expand Up @@ -66,16 +67,30 @@
</option>
{/each}
</select>
<div class="justify-center pt-2 pb-2 d-flex">
<SmallButton
iconPath={mdiPlus}

<div class="justify-end pt-2 pb-2 d-flex">
<Button
fab
aria-label="Add selected user to members"
on:click={addUserToMembers}
title="Add selected user to members" />
<SmallButton
iconPath={mdiMinus}
rounded
size="small"
text
title="Add selected user to members">
<Icon path={mdiPlus} />
</Button>
<Button
fab
aria-label="Remove selected member from members"
on:click={removeMember}
title="Remove selected member from members" />
rounded
size="small"
text
title="Remove selected member from members">
<Icon path={mdiMinus} />
</Button>
</div>

<h6>Members</h6>
<select bind:this={selectMemberElement} size="5">
{#each transformedMembers as member}
Expand Down

0 comments on commit 81d7d7b

Please sign in to comment.