Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Target slot container to copy just the text. (#1458)
Carlos Reyesf4b706556466
diff --git a/src/components/VMediaInfo/VLicenseTabPanel.vue b/src/components/VMediaInfo/VLicenseTabPanel.vueindex 8a4824e84..b590e4235 100644--- a/src/components/VMediaInfo/VLicenseTabPanel.vue+++ b/src/components/VMediaInfo/VLicenseTabPanel.vue@@ -3,10 +3,14 @@:id="tab"class="h-[190px] flex flex-col justify-between items-start text-sm md:text-base">- <div class="overflow-y-auto">+ <div :id="`panel-slot-${tab}`" class="overflow-y-auto"><slot /></div>- <VCopyButton :id="`copyattr-${tab}`" :el="`#panel-${tab}`" class="mt-6" />+ <VCopyButton+ :id="`copyattr-${tab}`"+ :el="`#panel-slot-${tab}`"+ class="mt-6"+ /></VTabPanel></template>