Use core icon component for app rows

This commit is contained in:
Andrew Kingston 2022-08-05 10:37:35 +01:00
parent 211b74100b
commit 447c51f8f2
2 changed files with 4 additions and 6 deletions

View File

@ -24,8 +24,8 @@
border-radius: 50%;
}
.icon :global(.spectrum-Icon) {
width: 20px;
height: 20px;
width: 22px;
height: 22px;
}
.icon.filled :global(.spectrum-Icon) {
width: 16px;

View File

@ -1,5 +1,5 @@
<script>
import { Heading, Button, Icon } from "@budibase/bbui"
import { Heading, Button, Icon, IconAvatar } from "@budibase/bbui"
import AppLockModal from "../common/AppLockModal.svelte"
import { processStringSync } from "@budibase/string-templates"
@ -10,9 +10,7 @@
<div class="title" data-cy={`${app.devId}`}>
<div style="display: flex;">
<div class="app-icon" style="color: {app.icon?.color || ''}">
<Icon size="XL" name={app.icon?.name || "Apps"} />
</div>
<IconAvatar icon={app.icon?.name || "Apps"} color={app.icon?.color} />
<div class="name" data-cy="app-name-link" on:click={() => editApp(app)}>
<Heading size="XS">
{app.name}