🐛 Fix: truncation text in copy-button

This commit is contained in:
ZhenShuo Leo
2025-05-06 17:14:00 +08:00
parent 1d21656d5e
commit 7c13ba985f
2 changed files with 7 additions and 1 deletions

View File

@@ -3579,6 +3579,10 @@ body a, body button {
z-index: 10;
width: calc(var(--spacing) * 20);
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
border-top-right-radius: var(--radius-md);
border-bottom-left-radius: var(--radius-md);
background-color: rgba(var(--color-neutral-200), 1);

View File

@@ -90,7 +90,9 @@ body button {
}
.copy-button {
@apply absolute top-0 right-0 z-10 invisible w-20 py-1 font-mono text-sm cursor-pointer opacity-90 bg-neutral-200 whitespace-nowrap rounded-bl-md rounded-tr-md text-neutral-700 dark:bg-neutral-600 dark:text-neutral-200;
@apply absolute top-0 right-0 z-10 invisible w-20 py-1 font-mono text-sm cursor-pointer
opacity-90 bg-neutral-200 whitespace-nowrap rounded-bl-md rounded-tr-md text-neutral-700
dark:bg-neutral-600 dark:text-neutral-200 overflow-hidden truncate;
}
.copy-button:hover,