From 7c13ba985f3195e510d5e943f1a1818c1eb3650b Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Tue, 6 May 2025 17:14:00 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix:=20truncation=20text=20in=20?= =?UTF-8?q?copy-button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/css/compiled/main.css | 4 ++++ assets/css/main.css | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 817ee1e9..187589a4 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -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); diff --git a/assets/css/main.css b/assets/css/main.css index d03c0015..99a504e3 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -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,