Skip to content

Commit 779af5d

Browse files
authored
Merge pull request #692 from devforth/next
Next
2 parents b4ce588 + 474fc1c commit 779af5d

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

adminforth/documentation/docs/tutorial/03-Customization/02-customFieldRendering.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ For fields containing sensitive data (like passwords, API keys, tokens, or other
605605
606606
The renderer wraps the standard value output and adds a click-to-reveal blur effect. Clicking again hides the value.
607607
608-
For long values (like API keys) you can enable compact mode by passing `compact: true` via `meta`. When set, the value is shortened the same way as the `CompactUUID` renderer (first 4 + `...` + last 4 characters). In compact mode you can additionally pass `copy: true` to render a copy-to-clipboard button next to the value:
608+
For long values (like API keys) you can enable compact mode by passing `compact: true` via `meta`. When set, the value is shortened the same way as the `CompactUUID` renderer (first 4 + `...` + last 4 characters). In compact mode you can additionally pass `copy: true` to render a copy-to-clipboard button next to the value. The copy button is only shown once the value is revealed (blur removed):
609609
610610
```ts title='./resources/anyResource.ts'
611611
columns: [

adminforth/spa/src/renderers/SensitiveBlurCell.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
</template>
2323
</Tooltip>
2424

25-
<IconFileCopyAltSolid
26-
v-if="showCopy && rawValue"
27-
@click.stop="copyToCB"
28-
class="shrink-0 min-w-5 min-h-5 cursor-pointer text-lightPrimary dark:text-darkPrimary"
29-
/>
25+
<span v-if="showCopy && rawValue" class="shrink-0 w-5 h-5">
26+
<IconFileCopyAltSolid
27+
v-if="show"
28+
@click.stop="copyToCB"
29+
class="w-5 h-5 cursor-pointer text-lightPrimary dark:text-darkPrimary"
30+
/>
31+
</span>
3032
</div>
3133
</template>
3234

0 commit comments

Comments
 (0)