Skip to content

Commit 135a86c

Browse files
committed
Add copy Project name button in header
Signed-off-by: tdruez <[email protected]>
1 parent 0dc7a40 commit 135a86c

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

scancodeio/static/main.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ a[target="_blank"] .fa-up-right-from-square {
340340
#content-header input[name="search"] {
341341
width: 225px;
342342
}
343+
.is-borderless {
344+
--bulma-button-border-width: 0px;
345+
--bulma-button-outer-shadow-a: 0;
346+
}
343347
button.as-link {
344348
height: auto;
345349
line-height: initial;

scanpipe/templates/scanpipe/project_detail.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
</li>
2222
<li class="is-active">
2323
<a href="#" aria-current="page">{{ project.name }}</a>
24+
<button class="button is-borderless has-text-grey copy-to-clipboard p-2" aria-label="Copy name" data-copy="{{ project.name }}" data-copy-feedback="Name copied!">
25+
<i class="fa-regular fa-clone"></i>
26+
</button>
2427
</li>
2528
</ul>
2629
</nav>

scanpipe/templates/scanpipe/tree/resource_path_breadcrumb.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
{% endif %}
3131
{% endfor %}
3232
</ul>
33-
<button class="button is-white copy-to-clipboard p-2" aria-label="Copy path" data-copy="{{ path }}" data-copy-feedback="Path copied!">
33+
<button class="button is-borderless copy-to-clipboard p-2" aria-label="Copy path" data-copy="{{ path }}" data-copy-feedback="Path copied!">
3434
<i class="fa-regular fa-clone"></i>
3535
</button>
3636
</nav>

0 commit comments

Comments
 (0)