Skip to content

Commit 3be8f98

Browse files
committed
fix(TextareaCopyable): copy placement top right display bug
Fix #297
1 parent d7b7b20 commit 3be8f98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/TextareaCopyable.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const { download } = useDownloadFileFromBase64(
9494
<div style="overflow-x: hidden; width: 100%">
9595
<c-card
9696
relative
97-
:style="(copyPlacement === 'top-right' || copyPlacement === 'bottom-right') ? `padding-bottom: 50px` : ''"
97+
:style="copyPlacement === 'top-right' ? 'padding-top: 50px' : (copyPlacement === 'bottom-right' ? 'padding-bottom: 50px' : '')"
9898
>
9999
<n-scrollbar
100100
ref="scrollbarRef"
@@ -112,9 +112,9 @@ const { download } = useDownloadFileFromBase64(
112112
</n-scrollbar>
113113
<div
114114
v-if="value && copyPlacement !== 'none'"
115+
absolute right-10px
115116
:top-10px="copyPlacement === 'top-right' ? '' : 'no'"
116117
:bottom-10px="copyPlacement === 'bottom-right' ? '' : 'no'"
117-
absolute right-10px
118118
:style="scrollable ? 'z-index: 10; background: var(--bg-color); border-radius: 50%; padding: 2px;' : ''"
119119
>
120120
<c-tooltip v-if="value && copyPlacement !== 'outside'" :tooltip="tooltipText" position="left">

0 commit comments

Comments
 (0)