mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-21 15:26:15 -04:00
fix(ui): copy icon placement
This commit is contained in:
parent
670f735501
commit
a74553c7ca
1 changed files with 7 additions and 2 deletions
|
@ -50,8 +50,13 @@ const tooltipText = computed(() => isJustCopied.value ? 'Copied!' : copyMessage.
|
||||||
<n-code :code="value" :language="language" :trim="false" data-test-id="area-content" />
|
<n-code :code="value" :language="language" :trim="false" data-test-id="area-content" />
|
||||||
</n-config-provider>
|
</n-config-provider>
|
||||||
</n-scrollbar>
|
</n-scrollbar>
|
||||||
<div absolute right-10px top-10px>
|
<div
|
||||||
<c-tooltip v-if="value" :tooltip="tooltipText" position="left">
|
v-if="value && copyPlacement !== 'none'"
|
||||||
|
absolute right-10px
|
||||||
|
:top-10px="copyPlacement === 'top-right' ? '' : 'no'"
|
||||||
|
:bottom-10px="copyPlacement === 'bottom-right' ? '' : 'no'"
|
||||||
|
>
|
||||||
|
<c-tooltip v-if="value && copyPlacement !== 'outside'" :tooltip="tooltipText" position="left">
|
||||||
<c-button circle important:h-10 important:w-10 @click="copy()">
|
<c-button circle important:h-10 important:w-10 @click="copy()">
|
||||||
<n-icon size="22" :component="Copy" />
|
<n-icon size="22" :component="Copy" />
|
||||||
</c-button>
|
</c-button>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue