I'm encountering an issue with a Dialog box that displays a message to the user regarding file deletion. Here's how it looks:
+-----------------------------------------------------------------------+
| Delete File? |
| |
| Are you sure you want to delete 'nameoffile.txt' from your storage? |
+-----------------------------------------------------------------------+
When it comes to the corresponding HTML:
<p>Are you sure you want to delete '
<span class = "delete-filename"></span>
' from your Cloud?</p>
The issue arises when the filename is 30 characters long, causing the text within the p tags to overlap the dialog box:
+-----------------------------------------------------------------------+
| Delete File? |
| |
| Are you sure you want to delete ' longfilename-longfilename.txt' from your storage?
+-----------------------------------------------------------------------+
I'm looking for a solution. Could this be a design flaw? I suspect that the p tag sets its width and height before the span tag is populated. Is that the root of the problem? How can this be fixed? Any insights or workarounds are appreciated. Thanks, Chris.