Skip to content

Commit

Permalink
squash: Hide Delegate text in badge when on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastinez committed Jun 20, 2024
1 parent f2c4a7f commit 6868376
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/views/projects/Source/PeerBranchSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
title="Change branch"
disabled={!peers}>
{#if selectedPeer}
<div class="global-flex-item txt-overflow">
<div class="global-flex-item">
<div class="node-id">
<Avatar nodeId={selectedPeer.id} inline />
{selectedPeer.alias || formatNodeId(selectedPeer.id)}
Expand All @@ -133,7 +133,7 @@
{#if selectedPeer.delegate}
<Badge size="tiny" variant="delegate">
<IconSmall name="badge" />
Delegate
<span class="global-hide-on-small-desktop-down">Delegate</span>
</Badge>
{/if}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/projects/Source/PeerBranchSelector/Peer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
{#if peer.remote.delegate}
<Badge size="tiny" variant="delegate">
<IconSmall name="badge" />
Delegate
<span class="global-hide-on-small-desktop-down">Delegate</span>
</Badge>
{/if}
</div>
Expand Down

0 comments on commit 6868376

Please sign in to comment.