In my application, I have many situations where a confirmation dialog is required. So, I developed a generic confirmation dialog with a customizable message.
Using Markdown allows me to provide a richer presentation of the message.
Unfortunately, when the message is a single line, it doesn’t look very appealing as it sticks to the top.
The label component has an "alignVertical" property, but unfortunately, Markdown doesn’t have such a property.
Since I’ve already disabled HTML escaping, I can use HTML. I tried the following:
<div style="text-align:center;">
my message
</div>
Unfortunately it didn't work.
Any ideas on how to fix this?
Ps. Multiline dialog:
Single line dialog: