From ef2ee9280d9db4048f190fc4d445c7959e6e0485 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Mon, 23 Sep 2024 15:36:03 -0700 Subject: [PATCH] More visible tooltips --- src/common/components/snackbar/SnackbarInsert.tsx | 8 ++++++-- src/common/util/clipboardUtils.ts | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/common/components/snackbar/SnackbarInsert.tsx b/src/common/components/snackbar/SnackbarInsert.tsx index a352bde18..e7ba87d83 100644 --- a/src/common/components/snackbar/SnackbarInsert.tsx +++ b/src/common/components/snackbar/SnackbarInsert.tsx @@ -44,7 +44,11 @@ const defaultTypeConfig: { }, }; -const titleSx: SxProps = { +const typeDefaultSx: SxProps = { + border: '1px solid', +}; + +const typeTitleSx: SxProps = { '--Snackbar-inset': '64px', borderRadius: 'md', boxShadow: 'md', @@ -98,7 +102,7 @@ export function SnackbarInsert() { )} - sx={activeMessage.type === 'title' ? titleSx : undefined} + sx={activeMessage.type === 'title' ? typeTitleSx : typeDefaultSx} > {activeMessage.message} diff --git a/src/common/util/clipboardUtils.ts b/src/common/util/clipboardUtils.ts index 754162376..93b9a2c95 100644 --- a/src/common/util/clipboardUtils.ts +++ b/src/common/util/clipboardUtils.ts @@ -16,7 +16,7 @@ export function copyToClipboard(text: string, typeLabel: string) { type: 'success', closeButton: false, overrides: { - autoHideDuration: 1400, + autoHideDuration: 2000, }, }); })