Add sync icon to group icon

This commit is contained in:
Adria Navarro 2024-02-23 16:42:41 +01:00
parent 2bbb40fd35
commit 511cb5cee4
3 changed files with 45 additions and 2 deletions

View File

@ -0,0 +1,22 @@
<script>
import { IconAvatar } from "@budibase/bbui"
export let text = ""
export let size = "S"
</script>
<div class="scim-banner">
<IconAvatar
name="Sync"
{size}
background={"var(--spectrum-global-color-gray-500)"}
/>
{text}
</div>
<style>
.scim-banner {
display: flex;
gap: var(--spacing-s);
}
</style>

View File

@ -1,8 +1,29 @@
<script> <script>
import { IconAvatar } from "@budibase/bbui" import { IconAvatar } from "@budibase/bbui"
import ScimInfo from "../../_components/SCIMInfo.svelte"
export let group export let group
export let size = "M" export let size = "M"
</script> </script>
<div class="icon-group">
<IconAvatar icon={group?.icon} background={group?.color} {size} /> <IconAvatar icon={group?.icon} background={group?.color} {size} />
{#if group.scimInfo?.isSync}
<div class="scim-sync">
<ScimInfo size="XXS" />
</div>
{/if}
</div>
<style>
.icon-group {
position: relative;
}
.scim-sync {
position: absolute;
bottom: -4px;
right: 0;
}
</style>

View File

@ -20,7 +20,7 @@
.align { .align {
display: flex; display: flex;
align-items: center; align-items: center;
overflow: hidden; overflow: visible;
gap: var(--spacing-m); gap: var(--spacing-m);
max-width: var(--max-cell-width); max-width: var(--max-cell-width);
flex: 1 1 auto; flex: 1 1 auto;