Change dialog box width

Is there a way to change the width of dialog or a work around?

Yes, you can pad the width by using whitespace characters in the dialog title: https://qwerty.dev/whitespace/#beautiful-dingbats I used the braille blank character via copy and paste

Here's an example from one of my projects:

<dialog id="message" title="⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀Send Message⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀" subtext="">
2 Likes