From abc0ed7726a387d04f819fc98bc5c2c71ba725d7 Mon Sep 17 00:00:00 2001 From: ffont Date: Tue, 28 Nov 2023 21:59:37 +0100 Subject: [PATCH] Chnage position of copy tags button --- .../static/bw-frontend/src/components/tagsFormField.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freesound/static/bw-frontend/src/components/tagsFormField.js b/freesound/static/bw-frontend/src/components/tagsFormField.js index 48c8a6326..e98955ff6 100644 --- a/freesound/static/bw-frontend/src/components/tagsFormField.js +++ b/freesound/static/bw-frontend/src/components/tagsFormField.js @@ -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 = ''; - 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); @@ -85,7 +85,7 @@ const drawWrapperContents = (inputWrapperElement, inputElement, tagsHiddenInput) clearTagsButton.title = "Clear tags" clearTagsButton.ariaLabel = "Clear tags" clearTagsButton.innerHTML = ''; - 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();