mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
More visible tooltips
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -16,7 +16,7 @@ export function copyToClipboard(text: string, typeLabel: string) {
|
||||
type: 'success',
|
||||
closeButton: false,
|
||||
overrides: {
|
||||
autoHideDuration: 1400,
|
||||
autoHideDuration: 2000,
|
||||
},
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user