Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
radicle-explorer src views repos Cob Assignees.svelte
<script lang="ts">
  import type { Reaction, BaseUrl } from "@http-client";
  import NodeId from "@app/components/NodeId.svelte";

  export let baseUrl: BaseUrl;
  export let assignees: Reaction["authors"] = [];
</script>

<style>
  .header {
    font: var(--txt-body-m-regular);
    margin-bottom: 0.75rem;
  }
  .body {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
    gap: 0.5rem;
    font: var(--txt-body-m-regular);
  }
  @media (max-width: 1349.98px) {
    .wrapper {
      display: flex;
      flex-direction: row;
      gap: 1rem;
      align-items: flex-start;
    }
    .header {
      margin-bottom: 0;
      height: 2rem;
      display: flex;
      align-items: center;
    }
    .body {
      align-items: center;
      align-self: center;
    }
    .no-assignees {
      height: 2rem;
      display: flex;
      align-items: center;
    }
  }
</style>

<div class="wrapper">
  <div class="header">Assignees</div>
  <div class="body">
    {#each assignees as { id, alias }}
      <NodeId {baseUrl} nodeId={id} {alias} />
    {:else}
      <div class="no-assignees" style:color="var(--color-text-tertiary)">
        No assignees
      </div>
    {/each}
  </div>
</div>