Skip to content

Commit

Permalink
Fix icon alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Abban committed Nov 24, 2023
1 parent 3adf58c commit 5d2b56b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard/components/BannerCampaign.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ campaign.campaign }}
</a>
<a v-if="pullRequestUrl==='https://github.com/wmde/fundraising-banners/pulls'"
class="banner-actions-icon"
class="pr-icon"
data-tooltip="Go to PR overview"
:href="pullRequestUrl"
target="_blank"
Expand All @@ -27,7 +27,7 @@
<IconPullRequest/>
</a>
<a v-else
class="banner-actions-icon"
class="pr-icon"
data-tooltip="Go to GitHub PR"
:href="pullRequestUrl"
target="_blank"
Expand Down
16 changes: 16 additions & 0 deletions dashboard/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,19 @@ a {
font-weight: bold;
padding: 10px 10px 0 0;
}

.pr-icon {
float: right;
display: flex;
height: 40px;
width: 40px;
justify-content: center;
align-items: center;
opacity: 0.4;
transition: opacity 500ms ease-in-out;

&:hover,
&:focus {
opacity: 1;
}
}

0 comments on commit 5d2b56b

Please sign in to comment.