Skip to content
Snippets Groups Projects
Commit b4d95002 authored by Eric Eastwood's avatar Eric Eastwood
Browse files

Use CSS to space external link icon from text

parent 8cf22bab
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -170,6 +170,8 @@
}
 
.tree-item-file-external-link {
margin-right: 4px;
span {
text-decoration: inherit;
}
Loading
Loading
Loading
Loading
@@ -6,13 +6,12 @@
%td.tree-item-file-name
= tree_icon('file', blob.mode, blob.name)
= link_to path_to_file,
class: 'tree-item-file-external-link js-artifact-tree-tooltip',
class: ('tree-item-file-external-link js-artifact-tree-tooltip' if is_external_link),
target: ('_blank' if is_external_link),
rel: ('noopener noreferrer' if is_external_link),
title: ('Opens in a new window' if is_external_link) do
%span.str-truncated>= blob.name
- if is_external_link
= ' '
= icon('external-link')
%td
= number_to_human_size(blob.size, precision: 2)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment