Open rolandoisidoro opened 4 years ago
Personally, I have a slight dislike for the current behavior as well.
The current design ensures that notifications never overlap, even when placed in different positions (for example top-start and top-center).
I wonder, is that a real requirement? Could we assume that application developers take care of not using multiple locations in the first place (to avoid overlaps)? The stretch positions could still force all other notifications out of the way, like currently.
Description
vaadin-notification
offers 9 possible placement positions:The size of the notification seem to follow 3 different rule sets:
20em
(which translates to320px
) and80vw
.Expected outcome
Notification width shouldn't be smaller on higher resolutions.
Actual outcome
For the 1st set of rules, which apply to 6/9 positions:
420px
the notification uses the whole available width and hasmargin: var(--lumo-space-s);
, which means that at420px
,vaadin-notification-card
is404px
wide;421px
,vaadin-notification-card
is209.75px
wide;1260px
,vaadin-notification-card
reaches404px
wide again.At 420px
At 421px
Steps to reproduce
vaadin-notification
element in the page, on a non-stretch position;opened
totrue
;