mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Dashboard] Prevent overflowing dashboard title on save toast (#172620)
Fixes #153552
## Summary
Prevent long dashboard name from overflowing toast notification on save.
<img width="450" alt="Screenshot 2023-12-05 at 2 06 49 PM"
src="6e39ddab
-9949-4e8e-aaca-04e71db919f7">
This commit is contained in:
parent
9b39d81c83
commit
b0ee6f4a9c
2 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,7 @@ describe('Save dashboard state', () => {
|
|||
);
|
||||
expect(allServices.notifications.toasts.addSuccess).toHaveBeenCalledWith({
|
||||
title: `Dashboard 'BOO' was saved`,
|
||||
className: 'eui-textBreakWord',
|
||||
'data-test-subj': 'saveDashboardSuccess',
|
||||
});
|
||||
});
|
||||
|
@ -92,6 +93,7 @@ describe('Save dashboard state', () => {
|
|||
);
|
||||
expect(allServices.notifications.toasts.addSuccess).toHaveBeenCalledWith({
|
||||
title: `Dashboard 'BooToo' was saved`,
|
||||
className: 'eui-textBreakWord',
|
||||
'data-test-subj': 'saveDashboardSuccess',
|
||||
});
|
||||
});
|
||||
|
|
|
@ -201,6 +201,7 @@ export const saveDashboardState = async ({
|
|||
if (newId) {
|
||||
toasts.addSuccess({
|
||||
title: dashboardSaveToastStrings.getSuccessString(currentState.title),
|
||||
className: 'eui-textBreakWord',
|
||||
'data-test-subj': 'saveDashboardSuccess',
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue