mirror of
https://github.com/sharevb/it-tools.git
synced 2026-11-22 05:51:44 +03:00
fix(Textarea Copyable): better copy button placement
This commit is contained in:
1 parent
09d56f5cbf
commit
ca47590376
1 file changed
+6
-2
@@ -75,7 +75,10 @@ const { download } = useDownloadFileFromBase64(
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div style="overflow-x: hidden; width: 100%">
|
<div style="overflow-x: hidden; width: 100%">
|
||||||
<c-card relative>
|
<c-card
|
||||||
|
relative
|
||||||
|
:style="(copyPlacement === 'top-right' || copyPlacement === 'bottom-right') ? `padding-bottom: 50px` : ''"
|
||||||
|
>
|
||||||
<n-scrollbar
|
<n-scrollbar
|
||||||
x-scrollable
|
x-scrollable
|
||||||
trigger="none"
|
trigger="none"
|
||||||
@@ -87,9 +90,10 @@ const { download } = useDownloadFileFromBase64(
|
|||||||
</n-scrollbar>
|
</n-scrollbar>
|
||||||
<div
|
<div
|
||||||
v-if="value && copyPlacement !== 'none'"
|
v-if="value && copyPlacement !== 'none'"
|
||||||
absolute right-10px
|
|
||||||
:top-10px="copyPlacement === 'top-right' ? '' : 'no'"
|
:top-10px="copyPlacement === 'top-right' ? '' : 'no'"
|
||||||
:bottom-10px="copyPlacement === 'bottom-right' ? '' : 'no'"
|
:bottom-10px="copyPlacement === 'bottom-right' ? '' : 'no'"
|
||||||
|
absolute right-10px
|
||||||
>
|
>
|
||||||
<c-tooltip v-if="value && copyPlacement !== 'outside'" :tooltip="tooltipText" position="left">
|
<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()">
|
||||||
|
|||||||
Reference in new issue
Block a user