Skip to content

Commit

Permalink
Chnage position of copy tags button
Browse files Browse the repository at this point in the history
  • Loading branch information
ffont committed Nov 28, 2023
1 parent 8d767f4 commit abc0ed7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions freesound/static/bw-frontend/src/components/tagsFormField.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ const drawWrapperContents = (inputWrapperElement, inputElement, tagsHiddenInput)
if (someTagsRendered){
// Add action buttons
const buttonsWrapper = document.createElement('div');
buttonsWrapper.style="position:absolute;right:10px;top:8px;z-index:1;";
buttonsWrapper.style="position:absolute;right:10px;top:-33px;z-index:1;";
inputWrapperElement.appendChild(buttonsWrapper);

const copyTagsButton = document.createElement('a');
copyTagsButton.title = "Copy the tags from this sound"
copyTagsButton.ariaLabel = "Copy the tags from this sound"
copyTagsButton.innerHTML = '<span class="bw-icon bw-icon-copy"></span>';
copyTagsButton.className = 'bw-link--black no-hover cursor-pointer'
copyTagsButton.className = 'bw-link--grey no-hover cursor-pointer'
copyTagsButton.addEventListener('click', evt => {
evt.preventDefault();
navigator.clipboard.writeText(tagsHiddenInput.value);
Expand All @@ -85,7 +85,7 @@ const drawWrapperContents = (inputWrapperElement, inputElement, tagsHiddenInput)
clearTagsButton.title = "Clear tags"
clearTagsButton.ariaLabel = "Clear tags"
clearTagsButton.innerHTML = '<span class="bw-icon bw-icon-close"></span>';
clearTagsButton.className = 'bw-link--black no-hover cursor-pointer h-spacing-left-1'
clearTagsButton.className = 'bw-link--grey no-hover cursor-pointer h-spacing-left-1'
clearTagsButton.style = 'font-size: 10px;'
clearTagsButton.addEventListener('click', evt => {
evt.preventDefault();
Expand Down

0 comments on commit abc0ed7

Please sign in to comment.