mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
Merge pull request #2113 from ZhenShuo2021/fix/copy-button
🐛 Fix: truncate long text in copy-button
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user