Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update FormInputCopyToClipboard to truncate display for too long values (#1701)
Leendert de Borst52e6b809f470
diff --git a/apps/browser-extension/src/entrypoints/popup/components/Forms/FormInputCopyToClipboard.tsx b/apps/browser-extension/src/entrypoints/popup/components/Forms/FormInputCopyToClipboard.tsxindex d111304c0..455a43812 100644--- a/apps/browser-extension/src/entrypoints/popup/components/Forms/FormInputCopyToClipboard.tsx+++ b/apps/browser-extension/src/entrypoints/popup/components/Forms/FormInputCopyToClipboard.tsx@@ -112,9 +112,11 @@ export const FormInputCopyToClipboard: React.FC<FormInputCopyToClipboardProps> =readOnlyvalue={value}onClick={copyToClipboard}- className={`w-full px-3 py-2.5 bg-white border ${+ className={`w-full pl-3 py-2.5 bg-white border ${copied ? 'border-green-500 border-2' : 'border-gray-300'- } text-gray-900 text-sm rounded-lg shadow-sm focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:placeholder-gray-400`}+ } text-gray-900 text-sm rounded-lg shadow-sm focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:border-gray-600 dark:text-white dark:placeholder-gray-400 truncate ${+ type === 'password' ? 'pr-16' : 'pr-10'+ }`}/><div className="absolute right-2 top-1/2 -translate-y-1/2 flex items-center gap-2">{copied ? (