Skip to content

Commit

Permalink
avoid wrapping the prefLabel copy button to the next line
Browse files Browse the repository at this point in the history
  • Loading branch information
osma committed Feb 1, 2024
1 parent 5bbc632 commit 972b16a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions resource/css/skosmos.css
Original file line number Diff line number Diff line change
Expand Up @@ -691,14 +691,15 @@ body {
}

#concept-label h1 {
float: left;
display: inline;
}

#copy-preflabel .fa-copy {
color: var(--vocab-text);
font-size: 30px;
position: relative;
bottom: -3px;
bottom: 10px;
left: 5px;
}

#copy-uri .fa-copy {
Expand Down
2 changes: 1 addition & 1 deletion src/view/concept-card.inc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<div class="col-sm-4 px-0" id="concept-property-label">{{ "skos:prefLabel" | trans }}</div>
<div class="col-sm-8" id="concept-label">
<h1 id="concept-preflabel" class="mb-0 user-select-all">{{ concept.label }}</h1>
<button class="btn btn-default copy-clipboard" type="button" id="copy-preflabel"
<button class="btn btn-default copy-clipboard px-0" type="button" id="copy-preflabel"
data-bs-toggle="tooltip" data-bs-placement="button" title="{{ 'Copy to clipboard' | trans }}">
<i class="fa-regular fa-copy"></i>
</button>
Expand Down
4 changes: 2 additions & 2 deletions src/view/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const SKOSMOS = {
{%- if request.plugins.callbacks ~%}
"pluginCallbacks": [{% for function in request.plugins.callbacks %}{% if not loop.first %}, {% endif %}"{{ function }}"{% endfor %}],
{%- endif ~%}
"language_strings" :{ "fi": { "fi": "suomi",
"language_strings": { "fi": { "fi": "suomi",
"en": "englanti",
"se": "pohjoissaame",
"sv": "ruotsi",
Expand All @@ -38,7 +38,7 @@ const SKOSMOS = {
"en": "English",
"se": "Northern Sami",
"sv": "Swedish",
"all": "In all languages"},},
"all": "In all languages"}}
}
</script>

Expand Down

0 comments on commit 972b16a

Please sign in to comment.