Skip to content

Conversation

@simmerz
Copy link
Member

@simmerz simmerz commented Oct 14, 2025

Slight design change in the link modal to stop it overlapping other editors.

Primary focus of this PR is to allow multiple buttons to have dialogs by reverting back to the native mechanism in trix.

I've had to add a comment with some tw classes, to force the tailwind builder to see them. Happy to remove, but didn't know a better way to handle that whilst still on older versions of tailwind-ruby/rails and not using the new engine features in importmaps.

@Bramjetten
Copy link
Contributor

Great!

I believe the original RevealController was also written by you, no?

@simmerz
Copy link
Member Author

simmerz commented Oct 15, 2025

It was indeed! It just doesn't fit this purpose, and Trix has its own dialog management, so why tinker :)

spina.gemspec Outdated
gem.add_dependency "jsonapi-serializer"
gem.add_dependency "browser"
gem.add_dependency "tailwindcss-ruby"
gem.add_dependency "tailwindcss-ruby", '< 4.0'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, but it does break projects using Tailwind v4. I should probably upgrade Spina to use Tailwind v4 as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't CI properly unless that's added in at the moment. It does break, and I don't like it being there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the right solution here is to remove this actually, and to upgrade TW in a separate PR, then rebase this and confirm all works and merge.

@simmerz simmerz force-pushed the multiple_trix_dialogs branch from 95a4b9f to 98521be Compare October 21, 2025 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants