Page MenuHomePhabricator

Success message toast displays vertically
Closed, ResolvedPublicBUG REPORT

Description

Description

Steps to reproduce:

  1. Go to https://www.wikifunctions.org/wiki/Z801?success=true

Observed behavior:

CdxMessage component shows vertical:

Screenshot from 2024-10-17 16-11-32.png (1×1 px, 167 KB)

Additional details

Toast-like messages are being shown in two cases:

Screenshot from 2024-10-17 16-38-38.png (969×1 px, 134 KB)

This toast used to be like this:

float.png (327×866 px, 31 KB)

CdxMessage seems to be taking 100% of the space that's available. Because the parent div doesn't have any width, CdxMessage becomes width:0.
Before, CdxMessage used to take 100% in containers with a fixed width, while it would be adjusted to the content size when the container had no fixed size.


Completion checklist

Event Timeline

Change #1081179 had a related patch set uploaded (by Genoveva Galarza; author: Genoveva Galarza):

[mediawiki/extensions/WikiLambda@master] Fix message toast size and position

https://gerrit.wikimedia.org/r/1081179

The codex team is working on a new component for these floating messages https://phabricator.wikimedia.org/T303612
We have been using cdx-message in the absence of a floating notification component, but as soon as the ToastNotification is ready, we should replace it.

Change #1081179 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Fix message toast size and position

https://gerrit.wikimedia.org/r/1081179