Skip to content

Commit

Permalink
set duration to 3sec and change position (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
KochTobi authored Jul 27, 2023
1 parent bfe2a5c commit e65b983
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ private Notification createSampleRegistrationPossibleNotification(String project

Component layout = new HorizontalLayout(text, closeButton);
layout.addClassName("content");
notification.setPosition(Position.MIDDLE);
notification.setPosition(Position.BOTTOM_START);
notification.setDuration(3_000);
notification.add(layout);
return notification;
}
Expand Down

0 comments on commit e65b983

Please sign in to comment.