mirror of
https://github.com/we-promise/sure.git
synced 2026-04-20 12:34:12 +00:00
* fix: improve dark mode readability across the app * fix: improve dark mode support for asset percentage text * fix: apply suggested patch for theme-related improvements * chore: apply PR feedback – remove dark:, align with design tokens, update form builder * chore: revert background token and restore original style for visual consistency * chore: remove unnecessary class attributes from form fields using builder * refactor: move number_field and date_field into metaprogramming block * refactor: replace bg-divider-adaptive divs with <hr> and border-secondary * fix: apply requested changes and linting fixes
19 lines
664 B
Plaintext
19 lines
664 B
Plaintext
<%# locals: (title:, content:, subtitle: nil, overflow_visible: false) %>
|
|
|
|
<%= modal overflow_visible: overflow_visible do %>
|
|
<article class="mx-auto w-full p-4 space-y-4 md:min-w-[450px]">
|
|
<div class="space-y-2">
|
|
<header class="flex justify-between items-center">
|
|
<h2 class="font-medium text-primary"><%= title %></h2>
|
|
<%= lucide_icon("x", class: "cursor-pointer w-6 h-6 md:w-5 md:w-5 text-secondary", data: { action: "mousedown->modal#close" }) %>
|
|
</header>
|
|
|
|
<% if subtitle.present? %>
|
|
<%= tag.p subtitle, class: "text-secondary font-light" %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<%= content %>
|
|
</article>
|
|
<% end %>
|