Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
fix(ui): move go to profile to isExperimental (#1261)
Browse files Browse the repository at this point in the history
* move go to profile to isExperimental
* add icon to prevent jumping
  • Loading branch information
juliendonck committed Nov 17, 2020
1 parent 015965d commit 37966ed
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions ui/Screen/Project/PeerSelector.svelte
Expand Up @@ -2,6 +2,7 @@
import { createEventDispatcher, getContext } from "svelte";
import { push } from "svelte-spa-router";
import { isExperimental } from "../../src/ipc";
import * as modal from "../../src/modal";
import * as path from "../../src/path";
import { BadgeType } from "../../src/badge.ts";
Expand Down Expand Up @@ -205,16 +206,21 @@
{/if}
</p>
</div>
<Tooltip value="Go to profile" position="top">
<div
data-cy={repo.identity.metadata.handle}
class="open-profile"
on:click={() => {
handleOpenProfile(repo.identity.urn);
}}>
<Icon.ArrowBoxUpRight />
</div>
</Tooltip>
{#if isExperimental()}
<Tooltip value="Go to profile" position="top">
<div
data-cy={repo.identity.metadata.handle}
class="open-profile"
on:click={() => {
handleOpenProfile(repo.identity.urn);
}}>
<Icon.ArrowBoxUpRight />
</div>
</Tooltip>
{:else}
<Icon.ChevronUpDown
style="margin-left: 0.5rem; vertical-align: bottom; fill: var(--color-foreground-level-4)" />
{/if}
</div>
{/each}
<div
Expand Down

0 comments on commit 37966ed

Please sign in to comment.