Skip to content

Width not working after latest update? #150

Description

@seabasss

After the latest update of either wire-elements modal or tailwind, my modals in all of my apps got a whole lot more narrow in size and using this doesn't seem to have any effect:

public static function modalMaxWidth(): string
{
    return 'xl';
}

Anyone know what changed in the latest update that I need to be aware of?
Im using tailwind JIT if that's of interest.

Edit // I reverted my composer file and only updated livewire elements modal and that is what's breaking it.

Thank you!

Edit 2 // This seems to be the difference:

Before update:

inline-block w-full align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:max-w-2xl

After update:

inline-block w-full align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:w-full sm:max-w-md md:max-w-xl lg:max-w-2xl

Edit 3 // I believe it's my JIT that needs to be updated with new classes. I found another thread about it on here. Sorry for duplicate. I think I got it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions