Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Add icon to Source tab
Rūdolfs Ošiņš committed 2 years ago
commit eba977e14e50a6cf3fa3d176ea34bdadfdf9231d
parent 149a5d6fb547cc344de9c8754d287d78b2e96888
2 files changed +21 -0
modified src/components/Icon.svelte
@@ -9,6 +9,7 @@
    | "checkmark-small"
    | "chevron-down"
    | "chevron-left"
+
    | "chevron-left-right"
    | "chevron-right"
    | "chevron-up"
    | "clipboard"
@@ -197,6 +198,23 @@
      7.64645C14.5488 7.84171 14.5488 8.15829 14.3536 8.35355L11.0607
      11.6464C10.8654 11.8417 10.8654 12.1583 11.0607 12.3536L14.3536
      15.6464C14.5488 15.8417 14.5488 16.1583 14.3536 16.3536Z" />
+
  {:else if name === "chevron-left-right"}
+
    <path
+
      fill-rule="evenodd"
+
      clip-rule="evenodd"
+
      d="M9.35353 6.64645C9.54879 6.84171 9.54879 7.15829 9.35353
+
      7.35355L5.06064 11.6465L5.06062 11.6465C4.86537 11.8417 4.86537 12.1583
+
      5.06062 12.3535L5.06064 12.3535L9.35353 16.6464C9.54879 16.8417 9.54879
+
      17.1583 9.35353 17.3536C9.15826 17.5488 8.84168 17.5488 8.64642
+
      17.3536L4.35354 13.0607C3.76774 12.4749 3.76773 11.5251 4.35353
+
      10.9393C4.35353 10.9393 4.35354 10.9393 4.35354 10.9393L8.64642
+
      6.64645C8.84168 6.45118 9.15826 6.45118 9.35353 6.64645ZM14.6464
+
      6.64645C14.8417 6.45118 15.1583 6.45118 15.3535 6.64645L19.6464
+
      10.9393C20.2322 11.5251 20.2322 12.4749 19.6464 13.0607L15.3535
+
      17.3536C15.1583 17.5488 14.8417 17.5488 14.6464 17.3536C14.4512 17.1583
+
      14.4512 16.8417 14.6464 16.6464L18.9393 12.3535C19.1346 12.1583 19.1346
+
      11.8417 18.9393 11.6465L14.6464 7.35355C14.4512 7.15829 14.4512 6.84171
+
      14.6464 6.64645Z" />
  {:else if name === "chevron-right"}
    <path
      fill-rule="evenodd"
modified src/views/projects/Header.svelte
@@ -54,6 +54,9 @@
      active={view.resource === "tree" ||
        view.resource === "history" ||
        view.resource === "commits"}>
+
      <svelte:fragment slot="icon">
+
        <Icon size="small" name="chevron-left-right" />
+
      </svelte:fragment>
      Source
    </SquareButton>
  </ProjectLink>