Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast message content overflows the toast border #4309

Closed
Dmytro-Lukashenko opened this issue Aug 21, 2023 · 0 comments
Closed

Toast message content overflows the toast border #4309

Dmytro-Lukashenko opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Dmytro-Lukashenko
Copy link
Contributor

Describe the bug

If the user adds to the "summary" or "detail" option a string without spaces length of more than 47 symbols the close button and text start to overflow the border of the toast.
toast_bug

Reproducer

https://stackblitz.com/edit/yashqz?file=src%2FApp.vue

PrimeVue version

3.30.2

Vue version

3.x

Language

ES6

Build / Runtime

Vite

Browser(s)

Chrome

Steps to reproduce the behavior

1.. Create a new Vue component and add the Toast component to the template.
2. Add a button to the template to trigger the toast appearing.
2. In the script tag import useToast composable
3. Create toast constant const toast = useToast();
4. Adjust toast options in the show function:

const show = () => {
  toast.add({
    severity: 'info',
    summary: 'Info',
    detail: 'File: 21_08_2023_test_environment_json_logs_data.json',
    life: 300000,
  });
}; 
  1. Click the button to toast appears.
  2. The toast content overflows the toast border.

Expected behavior

The toast content doesn't overflow the toast border.

@Dmytro-Lukashenko Dmytro-Lukashenko added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Aug 21, 2023
@Dmytro-Lukashenko Dmytro-Lukashenko changed the title Toast message content overflow the toast border Toast message content overflows the toast border Aug 21, 2023
@tugcekucukoglu tugcekucukoglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Aug 22, 2023
@tugcekucukoglu tugcekucukoglu added this to the 3.32.2 milestone Aug 22, 2023
@tugcekucukoglu tugcekucukoglu self-assigned this Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants