Skip to content

Commit 10233e6

Browse files
go: add copy to clipboard icon to shortcut listings
1 parent ff2a172 commit 10233e6

File tree

5 files changed

+20
-1
lines changed

5 files changed

+20
-1
lines changed

src/icons/copy.svg

Lines changed: 3 additions & 0 deletions
Loading

src/scss/components/_shortcut-list.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@
4545
max-width: 40%;
4646
}
4747

48+
@include breakpoints.breakpoint(lg) {
49+
h3 {
50+
max-width: 50%;
51+
}
52+
53+
.shortcut-list__header-links {
54+
max-width: 50%;
55+
}
56+
}
57+
4858
@include breakpoints.breakpoint(xl) {
4959
h3 {
5060
max-width: 65%;

src/templates/go-gotionary.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
<div class="shortcut-list__header-links">
6767
<a href="#" class="f2 link-underline" style="color:#0d395f">View</a>
6868
<a href="#" class="f2 link-underline ml-1" style="color:#0d395f">Report</a>
69+
<a href="#" class="f4 ml-1">
70+
{% include 'partials/icon.twig' with { name: 'copy' } %}
71+
</a>
6972
</div>
7073
</div>
7174
{% if item.description %}

src/templates/go-search.twig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@
5353
<div class="shortcut-list__header-links">
5454
<a href="#" class="f2 link-underline" style="color:#0d395f">View</a>
5555
<a href="#" class="f2 link-underline ml-1" style="color:#0d395f">Report</a>
56+
<a href="#" class="f4 ml-1">
57+
{% include 'partials/icon.twig' with { name: 'copy' } %}
58+
</a>
5659
</div>
5760
</div>
5861
{% if item.description %}

src/templates/partials/icons.twig

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)