More visible tooltips

This commit is contained in:
Enrico Ros
2024-09-23 15:36:03 -07:00
parent 3e05f751e3
commit ef2ee9280d
2 changed files with 7 additions and 3 deletions
@@ -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() {
<CloseRoundedIcon />
</IconButton>
)}
sx={activeMessage.type === 'title' ? titleSx : undefined}
sx={activeMessage.type === 'title' ? typeTitleSx : typeDefaultSx}
>
{activeMessage.message}
</Snackbar>
+1 -1
View File
@@ -16,7 +16,7 @@ export function copyToClipboard(text: string, typeLabel: string) {
type: 'success',
closeButton: false,
overrides: {
autoHideDuration: 1400,
autoHideDuration: 2000,
},
});
})